Results 1 to 1 of 1
Thread: nested <ui:repeat> - problem
- 06-20-2008, 10:06 AM #1
Member
- Join Date
- May 2008
- Posts
- 2
- Rep Power
- 0
nested <ui:repeat> - problem
Hi
I have an issue using the <ui:repeat> within another <ui:repeat> tag. The code is as below:
<ui:repeat value="#{displaysupp.suppDocs}" var="info">
<cs:container label="#{info.idTopic}" containerKind="grey">
<h:outputText value="#{info.content}"/>
<ui:repeat value="#{suppdocs.attachments}" var="item">
<h:outputText value="#{item.name}"/>
</ui:repeat>
</cs:container>
</ui:repeat>
Please note that the <cs:container> is our own specifi tag to display a container.
I need to repeat a number of objects withing one object. But I get an exception saying, "FacesException: Can't instantiate class: com.csg.cs.pl.bean.SupportDocs"
This class is a bean class which has the "attachments" array.
Can anyone tell me how to use a nested <ui:repeat> command with a good example.
Thanks alot for your help.
Similar Threads
-
nested for loop question
By javabob in forum New To JavaReplies: 3Last Post: 05-20-2008, 11:00 PM -
Breaking from nested switch
By javaplus in forum New To JavaReplies: 3Last Post: 02-02-2008, 08:28 AM -
Nested loops?
By gabriel in forum New To JavaReplies: 4Last Post: 08-06-2007, 04:51 PM -
Nested For Loop
By yuchuang in forum New To JavaReplies: 1Last Post: 07-08-2007, 01:11 PM -
Nested Tags JSP
By Marcus in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 06-25-2007, 05:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks