-
1. Re: <rich:columns with filterMethod
eugenbesel Feb 23, 2010 6:12 PM (in response to eugenbesel)Hello all,
I implemented my code like im example
<rich:columns id="col_#{col}" value="#{searchModul.columns}"
var="col" index="ind"
sortBy="#{data[ind]}"
sortOrder="#{searchModul.sortOrders[col]}"
filterMethod="#{searchModul.filterData}"><f:facet name="header">
<h:inputText value="#{searchModul.columnFilterValues[col]}" id="input">
<a4j:support event="onkeyup" reRender="table , ds2"
ignoreDupResponses="true" requestDelay="700"/>
</h:inputText>
</f:facet>...
with Bean:
public Map<String, Object> getColumnFilterValues() {
return columnFilterValues;
}public void setColumnFilterValues(Map<String, Object> columnFilterValues) {
this.columnFilterValues = columnFilterValues;
}public boolean filterData(Object current) {
System.out.println(current);
}
If I debug into the method filterData, then current-Object is the ArrayList of Strings. I think this is my row.
On this place I dont know which table column should be filtered. I have also a FilterValue as HashMap<String,Object>. on this place the key of this Map is the column id.
how should I implement filterData-Method?????
I think I dont have enough information for filtering.
ANY IDEA???
-
2. Re: <rich:columns with filterMethod
eugenbesel Feb 24, 2010 11:53 AM (in response to eugenbesel)I found the problem. thank you