0

Upgraded application from primefaces 5.3.6 to 8 version.Filters stop working in below data table.I didn't get any error in console.Looks like filters are not responding.Sorting working fine.

XHTML

<p:dataTable id="tableId1" var="v" paginator="true" value="dataModel"
    rowKey="rowKey" selectionMode="single" rowIndexVar="rowIndexVar"
    selection="selectedObj" widgetVar="wVar" filteredValue = "filteredResults"
    lazy = "lazyLoadIndicator" filterDelay="1000">
        <p:columns id="columnsId" value="#{columnsList}" var="column" sortBy="#{v[column.property1]}" filterBy="#{v[column.property1]}"
        filterMatchMode="contains">
        </p:columns>
</p:dataTable>

Java code:

private List<Model1> columnsList = new ArrayList<Model1>();
    
public class Model1 implements Serializable {
    private String property1;
     
    public Model1(String property) {
        this.property1 = property;  
    }
    
    public String getProperty1() {  
       return property1;
    }
}
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
priya
  • 361
  • 1
  • 4
  • 18

0 Answers0