My datatable is backed by an array list of critems. (i snipped non-essential attributes)
Code: Select all
<p:dataTable id="critemsGrid" var="critem" value="#{reunionHandler.reunionCritems}"
rowStyleClass="#{critem.type}">
<p:column >
...
</p:column>
<p:rowExpansion id="critemExpansion" styleClass="#{critem.type}" >
</p:rowExpansion>
</p:dataTable>
Example of generated code:
Code: Select all
<tr class="ui-widget-content ui-datatable-even DECISION ui-expanded-row" role="row" data-ri="0">
<tr class="ui-expanded-row-content ui-widget-content DECISION" style="">
<tr class="ui-widget-content ui-datatable-odd TASK ui-expanded-row" role="row" data-ri="1">
<tr class="ui-expanded-row-content ui-widget-content DECISION" style="">