0 Replies Latest reply on Jul 31, 2008 10:35 AM by btl_ayd

    Sorting attribute of datatable doesnt work in modelpanel

      Hi.Ä°n my application I used modelPanel for showing some data on datatable.
      data has been shown but filter and sorting doesnt work on the datatable.
      here is my model panel's tag


      <rich:modalPanel id="stok" height="500" width="600">

      <a4j:form ajaxSingle="false">
      <rich:datascroller style="margin-left:10px; margin-right:550px;" fastStep="2" stepControls="show" ajaxSingle="false" id="d" maxPages="20" renderIfSinglePage="true" for="tablo" align="center" boundaryControls="show" fastControls="show">
      </rich:datascroller>
      <rich:dataTable id="tablo" rows="7" value="#{TestRapor.stoktablo}" styleClass="table1" footerClass="foot" headerClass="theader1" rowClasses="row1,row2" var="satir" width="100%" onRowMouseOver="this.style.backgroundColor='#FBF7E6'" onRowMouseOut="this.style.backgroundColor=''" rowKeyVar="index">
      <rich:column sortBy="#{satir.stokkod}" filterBy="#{satir.stokkod}">
      <f:facet name="header"><h:outputText value="Stok kodu"></h:outputText></f:facet>
      <h:outputText value="#{satir.stokkod}" styleClass="cell"></h:outputText>
      </rich:column>
      <rich:column sortBy="#{satir.stokad}" filterBy="#{satir.stokad}" filterEvent="onkeyup" style="width: 60px;">
      <f:facet name="header"><h:outputText value="Stok adı"></h:outputText></f:facet>
      <h:outputText value="#{satir.stokad}" styleClass="cell"></h:outputText>
      </rich:column>
      </rich:dataTable>
      <a4j:commandButton value="Çıkış" styleClass="button" reRender="tablo" onclick="javascript:Richfaces.hideModalPanel('stok')" ></a4j:commandButton>
      </a4j:form>

      </rich:modalPanel>

      here is commnad button that show panel


      <a4j:region selfRendered="true"> <h:inputText value="#{TestRapor.tipKod}" id="st"></h:inputText>
      <a4j:commandButton reRender="tablo,stok,form:st" action="#{TestRapor.stokEkle}" value="ekle" onclick="javascript:Richfaces.showModalPanel('stok')"></a4j:commandButton>
      </a4j:region>

      can anybody say me what is wrong ?
      thx