facelets

Can I use facelets in a Google App Engine app?

旧时模样 提交于 2019-12-13 14:11:07
问题 I would like to do some more learning of facelets. Now that Java is a supported Google app engine language, is there anything in the facelets implementation that would prevent use on App Engine? Edit: This page at google now has a list of various frameworks and their status in regards to App Engine. 回答1: The 1.2 version of JSF was not working - because by default it would try to spawn threads. That's not allowed in GAE. This is fixed in the latest version of JSF 1.2 (build 13), as well as the

Inner UI:repeat does not bind to a bean in a nested UI:repeat

守給你的承諾、 提交于 2019-12-13 09:11:30
问题 HI, I am using nested ui:repeats to display my data. the outer UI:repeat works and binds to bean just fine, but the inner does not bind to the bean. In sumary, I would like to display a list of people where each person has a name and a list of email addresses. Here is my code: <ui:repeat value="#{myFamily.personList}" var="eachPerson" > <tr:panelCaptionGroup captionText="#{eachPerson.name}" styleClass="fullWidth"> <h:inputText value="#{eachPerson.age}" styleClass="fullWidth" /> <ui:repeat

Cannot create a session after the response has been committed…Why? [duplicate]

南笙酒味 提交于 2019-12-13 08:12:33
问题 This question already has answers here : Adding <h:form> causes java.lang.IllegalStateException: Cannot create a session after the response has been committed (5 answers) Closed 6 years ago . <?xml version='1.0' encoding='UTF-8' ?> Facelet Title <f:facet name="header">Books And Authors....</f:facet> <h:panelGrid columns="2" rules="cols"> <h:panelGrid id="pan1" columns="2"> <h:outputText value="Select Author"/> <p:selectOneMenu value="#{bean.selectedAuthor}" converter="authorConverter"> <f

What is the difference between facelets's ui:include and custom tag?

此生再无相见时 提交于 2019-12-13 05:41:21
问题 Ui:include and xhtml based tag (the one with source elt) seem to be much the same for me. Both allow to reuse piece of markup. But I believe there should be some reason for having each. Could somebody please briefly explain it? (I guess if I read full facelets tutorial I will learn it, but I have not time to do it now, so no links to lengthy docs please :) 回答1: They are quite similar. The difference is mainly syntactical. After observing their usage for some time it seems the convention is

Why won't my Facelets loop variable go out of scope?

橙三吉。 提交于 2019-12-13 02:04:21
问题 I know this looks like a lot of text, but I think it's a pretty simple concept I'm missing. I'm writing a web application with Facelets. I've got a custom tag rq:request-list that takes a list of requests as a parameter and outputs a lovely table to display them. So far, so good. rq:request-list starts out like you'd expect: <!-- ... --> <ice:dataTable value="#{list}" var="req"> <ice:column> <f:facet name="header">Date last edited</f:facet> <ice:outputText value="#{req.dateModified}" /> </ice

PrimeFaces Datatable Column Sorting is not working in IE8 but it works fine in Firefox

十年热恋 提交于 2019-12-13 01:35:10
问题 PrimeFaces Datatable Column Sorting is not working in IE8 but it works fine in Firefox. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Timestamp: Thu, 17 Feb 2011 17:56:48 UTC Message: Unexpected call to method or property access. jquery.js.jsf Line: 23 Char: 21078 Code: 0 URI: http://localhost:8080/PrimeFacesTutorial/javax.faces.resource/jquery/jquery.js.jsf

JSF - Why setter is not called this time?

青春壹個敷衍的年華 提交于 2019-12-13 01:28:30
问题 As usual, i've some trouble by using some ajax call on a requested scoped bean. I've this Bean : @ManagedBean @RequestScoped public class ArticlesSelector implements Serializable { @ManagedProperty(value="#{param.type}") private String type; private String zone; private String order; @PostConstruct public void init() { if(type==null || type.trim().isEmpty()) { this.type="1"; } if(zone==null || zone.trim().isEmpty()) { this.zone="list"; } if(order==null || order.trim().isEmpty()) { this.order=

Unable to add jsp page to xhtml page?

拟墨画扇 提交于 2019-12-12 22:17:09
问题 I am trying to include jsp page in my xhtml page following how-to-include-a-jsp-page-in-a-facelets-page but UIComponentBase class is not found, not sure why as application builds fine am getting this runtime exception. I am using Mojarra 2.1.7 , here is the stacktrace: Servlet.service() for servlet Faces Servlet threw exception: java.lang.ClassNotFoundException : javax.faces.component.UIComponentBase at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [:1.6.0_18-ea] at java.security

Composite component validation in JSF 2.0

左心房为你撑大大i 提交于 2019-12-12 20:02:28
问题 I have composite component in JSF 2.0 <composite:interface> <composite:attribute name="inputId"/> <composite:attribute name="labelValue"/> <composite:attribute name="inputValue" /> <composite:attribute name="required" /> <composite:attribute name="requiredMessage" /> </composite:interface> <composite:implementation> <div class="control-group"> <h:outputLabel for="#{cc.attrs.inputId}" value="#{cc.attrs.labelValue}" class="control-label" /> <div class="controls"> <h:inputText id="#{cc.attrs

Include non-Facelet content in a Facelet template

巧了我就是萌 提交于 2019-12-12 19:07:01
问题 Is there a way to have the content of an html file inserted into a Facelet template? The Facelets tag will not work since it is only for including Facelet content. To put it another way, I am looking for the Facelets equivalent to the JSP include directive <%@ include file="..." %> . 回答1: I may not understand what you need, but <ui:include> is not restricted to facelets content, you can insert valid xhtml with it, according to this link. Consider following facelets file (test.jsp): <!DOCTYPE