Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: None
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Windows, Jboss 5.1
-
Workaround Exists:Yes
-
Workaround Description:Polulate List<SelectItem> with SelectItem with all objects as lowercase Strings
Description
I have ace:dataTable with ace:column with filterOptions populated by List<SelectItem>, and I cannot select propery filter because in DataTableHeadRenderer.encodeFilter() method the
Object filterVal = column.getFilterValue();
came as lowercased String, and all comparisons itemVal.toString().equals(filterVal) are failing, so "selected" attribute never set to true.
The actual lowercasing is happening in DataTableDecoder.decodeFilters() method:
if (filteredColumn != null) filteredColumn.setFilterValue(params.get(filteredId).toLowerCase());
Object filterVal = column.getFilterValue();
came as lowercased String, and all comparisons itemVal.toString().equals(filterVal) are failing, so "selected" attribute never set to true.
The actual lowercasing is happening in DataTableDecoder.decodeFilters() method:
if (filteredColumn != null) filteredColumn.setFilterValue(params.get(filteredId).toLowerCase());
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion