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"
columnClasses="50,100,100,100"
onRowMouseOver="this.style.backgroundColor='#B5F3FB'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.rowBackgroundColor}'"
>
<f:facet name="header">
<rich:columnGroup>
<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>
</rich:columnGroup>
</f:facet>
<rich:column filterBy="#{pd.id}" sortBy="#{pd.id}" filterEvent="onkeyup" headerClass="idcolumn" sortOrder="DESCENDING">
<f:facet name="header">
<h:outputText value="ID" />
</f:facet>
<h:outputText value="#{pd.id}" />
</rich:column>
<f:facet name="footer" style="text-align:center;">
<h:panelGroup>
<rich:datascroller id="ds" renderIfSinglePage="false" reRender="pdlist" limitToList="true" style="tablescroll" >
</rich:datascroller>
<rich:spacer height="18" />
<h:commandButton value="Add New Contract" onclick="document.location.href='deployproc.jsf';return false;" class="footerbutton"/>
</h:panelGroup>
</f:facet>
</rich:dataTable>
</a4j:region>