This content has been marked as final.
Show 4 replies
-
1. Re: sorting data using rich:dataTable
sappo May 11, 2010 5:32 PM (in response to bking007)Hi Bart,
it would be really helpful if we could take a look at your sorting approach.
-
2. Re: sorting data using rich:dataTable
bking007 May 11, 2010 6:22 PM (in response to bking007)It's the same basic code that I am using -
<rich:dataTable id="cList" var="_cSets" value="#{cList.resultList}" rendered="#{not empty cList.resultList}"> <rich:column sortBy="#{_cSets.name}" filterBy="#{_cSets.name}" filterEvent="onkeyup"> <f:facet name="header">SET NAME</f:facet> <h:outputText value="#{_cSets.name}"></h:outputText> </rich:column> </rich:dataTable>
-
3. Re: sorting data using rich:dataTable
sappo May 12, 2010 3:02 PM (in response to bking007)Hi Bart,
your problem is that the rich:dataTable build-in sort method works on the current view assigned to it only. If you like to query over the whole resultset you've to do an external search. Take a look at the *List.xhtml files seam-gen generated for you.
Kevin
-
4. Re: sorting data using rich:dataTable
bking007 May 12, 2010 3:09 PM (in response to bking007)Thanks Kevin. It was helpful.