2 Replies Latest reply on Apr 19, 2011 5:57 AM by geschtli

    Big trouble by sorting a column in dataTable

    geschtli

      Hi and hello,

       

      my datas in 'dataTable' all shows correct.

      Here a little code sequence :

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:a4j="http://richfaces.org/a4j"

          xmlns:rich="http://richfaces.org/rich">

      .................................

       

      <h:form id="datas_form">

        <rich:dataTable value="#{datasManager.infosPaged}" id="table" var="info" rows="#{datasManager.pageSize}" rowClasses="odd, even"

                     styleClass="mytable" >

          <rich:column sortBy="#{info.info}" sortOrder="#{datasManager.infosOrder}" >

             <f:facet name="header">

               <a4j:commandLink value="Info" render="table" action="#{datasManager.sortByInfo}" />

            </f:facet>

            <h:outputText value="#{info.info}" />

          </rich:column>

           ........

       

      it seems that the '<a4j:commandLink ...'  tag works not correct, or is 'dead' in a dataTable component.

      Normaly, in this code, the 'dataTable' should be new rendered with a click on the link,

      or have i overseen something??

       

      (The used bean datasManager runs in @SessionScoped !!)