| Issue 80: | boolean primative filter value | |
| 3 people starred this issue and may be notified of changes. | Back to list |
1- Using the jMesa tag library, I define one of my column with a property of type boolean. This displays either "true" or "false" in> the column. When I apply a filter, I get the following error stack trace : java.lang.IllegalArgumentException: There is no FilterMatcher with the MatcherKey [org.jmesa.core.filter.MatcherKey@d185fe[type=boolean,property=mpsFilenamingSiteNames]] I'm guessing the default String Filter Matcher does not apply by default since a boolean is a primitive type. Should I create a FilterMatcherMap just for that? Shouldn't jMesa handle this by default?
Jan 30, 2008
#1
extremec...@gmail.com
Mar 10, 2008
(No comment was entered for this change.)
Labels:
-Type-Defect Type-Enhancement
Mar 10, 2008
(No comment was entered for this change.)
Labels:
-Priority-Medium Priority-Low
Apr 28, 2008
Im also facing the same problem but i just cannot modify my bean as it is getting used extensively in other parts of the application. Do we have FilterOption implementation in jmesa, the way we used to have in extremetable.
May 13, 2009
Even it is an old thread, I faced the same issue and this works for me: tableFacade.addFilterMatcher(new MatcherKey(boolean.class), new StringFilterMatcher()); This applies the default StringFilterMatcher to a boolean column or bean property. So you can filter writting "true" or "false" (or "t","f"...). But I prefer adding also this to the boolean columns: column.getFilterRenderer().setFilterEditor(new DroplistFilterEditor()); So you can choose between "true" and "false" in the filter editor. I'm dealing with a lot of boolean columns and have almost finished a new CheckBoxCellEditor (which can work even when exporting), with several parameters. Where should I send or post it for others to evaluate? Cheers, Alex
May 13, 2009
I will open a new Issue with my proposed CheckBoxCellEditor |