I have a problem here.
I'm using a <ui:repeat>
to create datatables, because the user can select from a other datatable multiple rows that create these multiple datatables.
It's all working fine, but the sortBy
does not.
How can I use the sortBy
here?
<ui:repeat var="something" value="#{SomeClassManagedBean.somethingHere}">
<p:dataTable value="#{something.rows}" var="row" sortBy="#{row.value2}">
<p:column headerText="Value 1" sortBy="#{row.value1}">
<h:outputLabel value="#{row.value1}" />
</p:column>
<p:column headerText="Value 2" sortBy="#{row.value2}">
<h:outputLabel value="#{row.value2}" />
</p:column>
<p:column headerText="Value 3" sortBy="#{row.value3}">
<h:outputLabel value="#{row.value3}" />
</p:column>
</p:dataTable>
</ui:repeat>