This content has been marked as final.
Show 4 replies
-
1. Re: Boolean filter on datatable
ilya_shaikovsky Sep 2, 2009 5:43 AM (in response to jfaath)how about something like this:
<rich:column filterExpression="#{cap.checked==filteringBean.filterChecked}"> <f:facet name="header"> <h:selectBooleanCheckbox value="#{filteringBean.filterChecked}"> <a4j:support event="onchange" reRender="table, ds2" /> </h:selectBooleanCheckbox> </f:facet> <h:selectBooleanCheckbox value="#{cap.checked}" /> </rich:column>
or filterMethod and select with some options like checked/unchecked/any instead of checkbox could be better in usage. -
2. Re: Boolean filter on datatable
jfaath Sep 2, 2009 3:20 PM (in response to jfaath)Thanks for your suggestion. Based on that, and the fact that I just noticed there was a whole section on table filtering, I was able to find a solution.
-
3. Re: Boolean filter on datatable
jfaath Sep 4, 2009 12:59 PM (in response to jfaath)Quick question: I've implemented the solution with a select box. However, I also want to use the built-in sorting.
The problem is, because the select box is in the header, whenever it is changed (or, just clicked) the column is sorted as well.
Is there any way to combine both without this issue? -
4. Re: Boolean filter on datatable
nbelaevski Sep 4, 2009 5:40 PM (in response to jfaath)Hi,
You can prevent this by addingonclick="Event.stop(event)"