-
1. Re: how to create dynmaic list inside panelBar
ilya_shaikovsky Jan 27, 2010 11:49 AM (in response to waq)1) panel bar items could be iterated using c:forEach in order to create dynamically from some server side collection.
2) as for the lists itself them just encodes as standard html lists so should be just used in the same way.
-
2. Re: how to create dynmaic list inside panelBar
waq Jan 27, 2010 12:38 PM (in response to ilya_shaikovsky)what if i use ui:repeat instead forEach? And i ll only put panelBarItem in the loop, right?
and how will i populate the richDefinationList then for the corresponding panelBarItem?
-
3. Re: how to create dynmaic list inside panelBar
waq Jan 27, 2010 12:43 PM (in response to waq)is it how you are saying?
<rich:panelBar>
<ui:repeat value="#{allPeople}" var="person">
<rich:panelBarItem label="#{person.fname}, #{person.lname}">
<ul>
<ui:repeat value="#{person.pets}" var="pet">
<li>
.....
</li>
</ui:repeat>
</ul>
</rich:panelBarItem>
</ui:repeat>
</rich:panelBar> -
4. Re: how to create dynmaic list inside panelBar
waq Jan 28, 2010 5:42 AM (in response to waq)after reading https://jira.jboss.org/jira/browse/RF-4980 and trying the above example i come to know that we can not do it using ui:repeat. so can you give me some detail of how it works or refer any example for creating panelBarItem in a loop? -
6. Re: how to create dynmaic list inside panelBar
waq Jan 28, 2010 6:35 AM (in response to ilya_shaikovsky)thanks nice article. c:forEach works for me. but one thing i need to ask. i read it somewhere (in the some forum i guess) that JSTL is not fit for JSF. is that true? -
7. Re: how to create dynmaic list inside panelBar
nbelaevski Jan 28, 2010 7:08 AM (in response to waq) -
8. Re: how to create dynmaic list inside panelBar
waq Jan 28, 2010 11:07 AM (in response to nbelaevski)yes something like this. so as it suggests if there is an JSTL equilant available in JSF then gor for it other wise no problem using JSTL (like ForEACh)