2 Replies Latest reply on Nov 2, 2009 2:26 AM by Sunay Shah

    richfaces:: richdatatable problem.

    Sunay Shah Apprentice

      Hello all,

      Following is my code for rich:datatable , this code is loaded when i am clicking on the menu.

      let say i have two menuitem x and y. depends on menu it will load the table. the problem is that it works fine for some time. now when i click thrice of four time the grid is not able to update though i have write code in a queue section. it doesn't stream line the request and some time my grid is not able to update. I debug my code and can find that it sends multiple request. I think it is due to different phases of JSF life cycle. what to do to render my grid propoerly to display data.

      Thanks in Advance.

      <a4j:queue id="dataQueue"/>
      <a4j:region id="dataPanel">
      <rich:dataTable align="center" value="#{definitionList.genericList}" var="pd"
      rowClasses="row1, row2" id="pdlist" rows="15"

      <f:facet name="header">
      <rich:column colspan="6">
      <h:outputText value="Contracts By Category" rendered="#{type == 'contracts'}"/>
      <h:outputText value="Other Contract Sub Processes" rendered="#{type != 'contracts'}"/>
      <rich:column filterBy="#{pd.id}" sortBy="#{pd.id}" filterEvent="onkeyup" headerClass="idcolumn" sortOrder="DESCENDING">
      <f:facet name="header">

      <h:outputText value="ID" />
      <h:outputText value="#{pd.id}" />
      <f:facet name="footer" style="text-align:center;">
      <rich:datascroller id="ds" renderIfSinglePage="false" reRender="pdlist" limitToList="true" style="tablescroll" >
      <rich:spacer height="18" />
      <h:commandButton value="Add New Contract" onclick="document.location.href='deployproc.jsf';return false;" class="footerbutton"/>