Author: nbelaevski
Date: 2009-04-13 08:21:55 -0400 (Mon, 13 Apr 2009)
New Revision: 13525
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6680
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2009-04-13
12:16:48 UTC (rev 13524)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/DataTableScrollerBean.java 2009-04-13
12:21:55 UTC (rev 13525)
@@ -12,8 +12,6 @@
import java.util.Random;
import java.util.Set;
-import javax.faces.context.FacesContext;
-
import org.richfaces.component.UIScrollableDataTable;
import org.richfaces.demo.datafilterslider.DemoInventoryItem;
import org.richfaces.model.SortField;
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java 2009-04-13
12:16:48 UTC (rev 13524)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/datatablescroller/Facet.java 2009-04-13
12:21:55 UTC (rev 13525)
@@ -6,6 +6,9 @@
package org.richfaces.datatablescroller;
+import org.richfaces.model.Ordering;
+
+
/**
* TODO Class description goes here.
* @author "Andrey Markavtsov"
@@ -49,5 +52,14 @@
public void setFooter(String footer) {
this.footer = footer;
}
+
+ private Ordering sortOrder;
+ public Ordering getSortOrder() {
+ return sortOrder;
+ }
+
+ public void setSortOrder(Ordering sortOrder) {
+ this.sortOrder = sortOrder;
+ }
}
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml
===================================================================
---
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml 2009-04-13
12:16:48 UTC (rev 13524)
+++
trunk/samples/richfaces-demo/src/main/webapp/richfaces/columns/examples/example.xhtml 2009-04-13
12:21:55 UTC (rev 13525)
@@ -12,7 +12,7 @@
</f:facet>
<rich:columns value="#{dataTableScrollerBean.columns}"
var="columns"
- index="ind" sortBy="#{model[ind].price}">
+ index="ind" id="column#{ind}"
sortBy="#{model[ind].price}" sortOrder="#{columns.sortOrder}">
<f:facet name="header">
<h:outputText value="#{columns.header}" />