I have to display a slightly complicated page which has a list containing a list and that containing a list etc...
e.g. say you have a list of employees by dept..i.e. at the top level my backing bean returns a list of EmpDeptVOs and each item in the list (EmpDeptVO) is defined as
EmpDeptVO { String dept; List<EmplVO>; {list of emp belonging to dept) }
<c:ForEach items="backingBean.empDeptVOList" var="empDeptVO " > <ul> #{empDeptVO.dept} <c:ForEach items="empDeptVO.empVOList" var="empVO " > <li> <h:dataTable value="#{empVO.details}" var="details"> <t:column> <f:facet name="header">Emp Name</f:facet> <h:inputText value="#{details.name}" </t:column> </h:dataTable> <h:dataTable value="#{empVO.experiences}" var="experience"> <t:column> <f:facet name="header">Emp Experience</f:facet> <h:inputText value="#{experience.value}" </t:column> </h:dataTable> </li> </<c:ForEach> </ul> </c:ForEach>
Anyone have any ideas? Please reply to this post if you have any suggestions/ideas on how I could get this working.