Author: konstantin.mishin
Date: 2008-03-26 13:20:05 -0400 (Wed, 26 Mar 2008)
New Revision: 7271
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
RF-2778
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-03-26
17:17:27 UTC (rev 7270)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-03-26
17:20:05 UTC (rev 7271)
@@ -331,12 +331,14 @@
public boolean evaluate(Object input) {
UIComponent component = (UIComponent) input;
// accept only columns with corresponding facets.
- if (component instanceof Column || component instanceof UIColumn) {
- return component.isRendered()&&(component.getFacet(name) != null);
+ boolean ret = component.isRendered()&&(component.getFacet(name) != null);
+ if (!ret && component instanceof Column) {
+ Column column = (Column)component;
+ ret = column.isSelfSorted() || (column.getFilterMethod() == null
+ && component.getValueExpression("filterExpression") == null
+ && component.getValueExpression("filterBy") != null);
}
- else{
- return false;
- }
+ return ret;
}});
}
Show replies by date