CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
return colorDB.getFilteredColorCount(filterCriteria);
}
public List getColorList() {
CompositeFilterCriterion filterCriteria = Faces.var("filterCriteria", CompositeFilterCriterion.class);
boolean sortAscending = Faces.var("sortAscending", Boolean.class);
String sortColumnId = Faces.var("sortColumnId", String.class);
int pageStart = Faces.var("pageStart", Integer.class);
int pageSize = Faces.var("pageSize", Integer.class);
return colorDB.findColorsForPage(filterCriteria, sortColumnId, sortAscending, pageStart, pageSize);