2 Replies Latest reply on Jun 5, 2008 9:40 AM by betul aydin

    datatable sortable problem

    betul aydin Newbie

      Hi I use myeclipse 6.0 as ide and richfaces 3.2.0 sr1 I configured my datatable's column sortable and added datascroll component.But I passed next paged on my datable with datascroll my column sortable doesnt work what is problem? here is my datatable tag:

      <rich:datascroller style="margin-left:10px; margin-right:500px;" id="d" maxPages="5" renderIfSinglePage="true"for="tablo" align="center" boundaryControls="show" fastControls="show"></rich:datascroller>
      <rich:dataTable id="tablo" value="#{Tanim.tanimtablo}" styleClass="table1" footerClass="foot" headerClass="theader1" rowClasses="row1,row2" var="satir" width="100%" onRowMouseOver="this.style.backgroundColor='#FBF7E6'" onRowMouseOut="this.style.backgroundColor=''" rows="10">
      <rich:column sortBy="#{satir.kod}">
      <f:facet name="header"><h:outputText value="Kod" /></f:facet>
      <h:commandLink action="#{Tanim.araKod}" styleClass="comlink" >
      <h:outputText value="#{satir.kod}" id="out" styleClass="cell" ></h:outputText>
      </h:commandLink>
      </rich:column>
      <rich:column sortBy="#{satir.grup}">
      <f:facet name="header"><h:outputText value="Grup"></h:outputText> </f:facet>
      <h:commandLink action="#{Tanim.araKod}" styleClass="comlink" >
      <h:outputText value="#{satir.grup}" styleClass="cell"></h:outputText>
      </h:commandLink>
      </rich:column>
      <rich:column sortBy="#{satir.testad}">
      <f:facet name="header"><h:outputText value="Test Ad"></h:outputText> </f:facet>
      <h:commandLink action="#{Tanim.araKod}" styleClass="comlink" >
      <h:outputText value="#{satir.testad}" styleClass="cell"></h:outputText>
      </h:commandLink>
      </rich:column>
      <rich:column>
      <f:facet name="header"><h:outputText value="Standart Aralık Å┼żekli"></h:outputText></f:facet>
      <h:outputText value="#{satir.saralik}" styleClass="cell"></h:outputText>
      </rich:column>
      <rich:column>
      <a4j:commandButton id="s" image="img/x.gif" rendered="#{satir.render}" onclick="javascript:Richfaces.showModalPanel('TanimForm:panel')" action="#{Tanim.sil}" reRender="tablo"></a4j:commandButton>
      </rich:column>
      </rich:dataTable>