scrollableDataTable in scrollableDataTable
hanshans Apr 19, 2010 5:55 AMHi everyone,
I'm trying to generate following table structure:
__________________________________ | |______D___________ A |____B___|______E___________ | C |______F___________ ______|________|______G___________
With
- A.sublist gives B,C
- B.sublist gives D,E
One way to achieve that is a rich:datatable within another rich:datatable:
<rich:dataTable value="#{bean.result}" var="list"><rich:column><h:outputText value="#{list.id}"></h:outputText></rich:column><rich:column><rich:dataTable value="#{list.sublist}" var="sublist"><rich:column><h:outputText value="#{sublist.id}"></h:outputText></rich:column></rich:dataTable></rich:column></rich:dataTable>
Which works but does not give me the possibility to enable single-/multiple row selection.
Therefore I would like to embed one rich:scrollableDataTable into another just like in the above example.
Unfortunatly that does not work.
The inner table is not displayed.
Any suggestions?
Thanks,
Alex