Hello everybody,
I've created a rich:dataTable using Richfaces 3.2.2 BETA2 and when I click in the sort icon it is not updated with the ascending/descending images like it did in previous versions. Am I doing anything wrong? Is this a bug?
It works as expected if I use Richfaces 3.2.1GA
My Environment:
Tomcat 6.0
Richfaces 3.2.2 BETA2
JSF SUN RI - 1.2_08-b06-FCS
dataTable page:
<%@ page contentType="text/html"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <f:view> <html> <body> <a4j:form> <rich:dataTable value="#{TestBean.someData}" var="someVar"> <rich:column sortBy="#{someVar}" selfSorted="true"> <f:facet name="header"> <h:outputText value="Some Var" /> </f:facet> <h:outputText value="#{someVar}" /> </rich:column> </rich:dataTable> </a4j:form> </body> </html> </f:view>
package exemplo; import java.util.ArrayList; import java.util.List; public class TestBean { private List<Integer> someData; public TestBean(){ someData = new ArrayList<Integer>(); for(int i = 0; i < 10; i++){ someData.add((int)(Math.random()*10)); } } public List<Integer> getSomeData() { return someData; } }
That was resolved in Richfaces 3.2.2 BETA 3!
Thank you folks!