So lets say I have the following table:
<p:dataTable id="genaricTable" var="item" value="#{genaricBean.currentValue}" >
<p:columnGroup type="header">
<p:row>
<p:column rowspan="" headerText="value1"/>
<p:column rowspan="" headerText="value2"/>
<p:column rowspan="" headerText="value3"/>
</p:row>
</p:columnGroup>
<p:subTable var="subItem" value="#{item.subItemList}" >
<f:facet name="header">
#{item.header}
</f:facet>
<p:column>
<h:outputText value="#{subItem.value1}"/>
</p:column>
<p:column>
<h:outputText value="#{subItem.value1}"/>
</p:column>
<p:column>
<h:outputText value="#{subItem.value1}"/>
</p:column>
</p:subTable>
</p:dataTable>
Is there a way I can filter/sort by the subcolumn tables with the built in primefaces components? The only thing I can think of is putting in a custom command link to do it.