Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

nested af:forEach loop

902407Mar 14 2012 — edited Mar 14 2012
Hi,

How can i use nested af:forEach loop. I can't use af:iterator for sure, please provide solution only using af:forEach.

<af:forEach items ="#{bindings.parentVO.rangeSet}" var ="parent">
<af:forEach items ="#{parent.chidVO}" var="child">
<af:outputLabel value="#{child.empId}"/>
</af:forEach>
</af:forEach>

here child.empId is not printing any value. Data is proper and bindings are also fine. Please guide why forEach is not working with parent-child VO?

I guess in second forEach loop I am missing something like parent.childVO._something_ i tried using parent.childVO.rangeSet and other option but it didn't work

Edited by: 899404 on Mar 14, 2012 10:47 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2012
Added on Mar 14 2012
1 comment
578 views