Linked Questions
34 questions linked to/from How to make a grid of JSF composite component?
0 votes
2 answers
1k views
Layout problems with composite components and PanelGrid [duplicate]
Possible Duplicate: How to make a grid of JSF composite component? I have a <p:panelGrid> with one column to produce the header and the footer. The text is in Portuguese, it says "Fields are ...
0 votes
0 answers
12 views
Is it possible to pass on the children of a composite component CC as the cell contents of CC's panelGrid parent? [duplicate]
For example, I have a composite component like this: ... <cc:implementation> <h:outputText value="#{binding.label}" /> <h:outputText value="#{binding.value}" /> ...
180 votes
3 answers
103k views
JSTL in JSF2 Facelets... makes sense?
I would like to output a bit of Facelets code conditionally. For that purpose, the JSTL tags seem to work fine: <c:if test="${lpc.verbose}"> ... </c:if> However, I'm not sure if this ...
110 votes
2 answers
61k views
When to use <ui:include>, tag files, composite components and/or custom components?
I started using JSF 2.0 with Facelets recently and got puzzled by new composite components knowing existing <ui:include> and other templating techniques offered by Facelets 1.x. What is the ...
82 votes
2 answers
122k views
How does the 'binding' attribute work in JSF? When and how should it be used?
There are lot of materials out there differentiating value attribute and binding attribute in JSF. I'm interested in how both approaches differ from each other. Given: public class User { ...
25 votes
2 answers
55k views
How to create dynamic JSF form fields
I have found some similar questions like this one, however there are so many ways this can be done that it made me more confused. We are getting an XML file that we are reading. This XML contains ...
24 votes
1 answer
33k views
What is the real conceptual difference between ui:decorate and ui:include?
It occurs ago me that ui:decorate is functionally the same as ui:include except that you can also pass ui:param and ui:define to the included file. Am I crazy? EDIT : Although in fact you can pass ...
22 votes
2 answers
10k views
Avoiding duplicate ids when reusing facelets compositions in the same naming container
I have a <ui:composition> that contains a few elements with explicit ids and some ajax events which reference these ids for partial processing/updating. I encapsulated this fragment of xhtml ...
11 votes
1 answer
9k views
Primefaces outputLabel for composite component
I have an issue with using p:outputLabel when used with composite component. I have composite component with p:inputText field (I removed irrelevant parts from component): <cc:interface> <...
5 votes
2 answers
10k views
Switch case alternative for JSF pages
Other than c:if or c:choose, are there any better ways to implement conditional rendering of 1 component out of several components. Something like switch case for JSF pages?
7 votes
1 answer
2k views
How to refactor snippet of old JSP to some JSF equivalent?
ORIGINAL JSP (WorkItem.jsp) <c:forEach var="actionItem" items="${workItem.work_action_list}"> <c:if test="${actionItem.workActionClass.work_action_type_id == '1'}" > <%@ ...
2 votes
2 answers
2k views
Reusing a form in two different views JSF
Is it possible to reuse a form in two different views in JSF? I know about the ui:include but how would you do it with the action on the submit button for example? Or do I need to duplicate the forms?
6 votes
1 answer
3k views
JSF 1.2 : Can I create reusable component inside JSF view
Is possible to something like this in jsf? <ui:composition> <x:reusableCode id="editScreen">InnerHtml ... </x:reusableCode> code... <x:use component="editScreen"/> </...
5 votes
1 answer
2k views
Dynamic Action in JSF page
I have a JSF page. My CommandButton action method value is dependent on the bean variable value. Example: Bean headerBean has varaible actionValue with value "someBean.doAction1()" When I use , It ...
1 vote
1 answer
3k views
JSF 2 Composite Component rendering problem
My composite component (cc) creates an inputText-Field. The important part is, that it is rendered depending on the models property "visible". The model is given to the component via parm "name". <...