I d like to create several xhtml pages using the same datatable with different filter.
For example there would be a men.xhtml and women.xhtml page from and service call getHumans; I would like the filter to be automatically applied without typing it and I dont want to create an extra view as it seems to me a lot of stuff for nothing.
I've tried these code with no success
<p:column filterBy="human.gender" filteredValue="men"
headerText="Gender" style="width: 150px;">
<h:outputText value="#{human.gender}" />
</p:column>
I've also tried to add this:
<p:dataTable id="gender" var="gender" filterValue="men" ...
but it didn't work
Any idea of what I can do?