I want to have a p:datatable
which contains one column having a treenode in each cell. How should I implement this? I'm new to jsf/primefaces. Any example is really appreciated. Thanks for any help!
col1 | col2 ------------------------------------------- data1 | node1 | |--- node2 | |--- node3 | |--- node4 ------------------------------------------ data2 | node5 | |--- node6 ---------------------------------------------
Here is my original datatable with all String columns:
<p:dataTable id="datatable" value="#{userData.dataList}" var="data">
<p:columns value="#{userData.dataTableColumns}" var="column">
<f:facet name="header">
<h:outputText value="#{column.header}" />
</f:facet>
<h:outputText value="#{data[column.property]}" />
</p:columns>
</p:dataTable>