Weird behaviour of rich:datascroller
rajeshiv Jun 25, 2009 3:01 PMHi there,
I have this weird behaviour when I use rich:datascroller. Iam using the datascroller along with my rich:datatable formy page navigation. My page navigation works fine, however when I navigate to the next page sometimes a4j:commandLinks which are columns in my datatable dont work as expected. On clicking the a4j command links should take me to anew view, this does not happen when I navigate to the next page using datascroller.
<rich:datascroller id="dataScroller" renderIfSinglePage="false" immediate="true" for="searchresults" maxPages="5"/> <rich:dataTable style="border-bottom-width:1px;" value="#{SEARCH_RESULTS}" var="hit" id="searchresults" rendered="#{SEARCH_RESULTS != null && not empty SEARCH_RESULTS_SIZE}" headerClass="center" width="100%" binding="#{searchResultsBean.data}" rows="20" cellpadding="0" cellspacing="0"> <h:column> <h:panelGrid columns="3" id="searchResultsTable" width="100%" columnClasses="dataTableColumn1,dataTableColumn2,dataTableColumn3" cellpadding="0" cellspacing="0"> <rich:panel style="border:0px;margin:0px" id="checkBoxPanel"> <h:selectBooleanCheckbox value="#{hit.selected}" id="selectBox" style="align:center" /> </rich:panel> <rich:panel style="border:0px;margin:0px" id="identPanel"> <h:outputText style="font-weight:bold" value="This is a No-Hit File" rendered="#{hit.noHit}" id="hitNohit" /> <h:panelGrid columns="1" id="identGrid"> <a4j:commandLink action="#{searchResultsBean.displayDetails}" immediate="true" id="displayDetailsLink"> <h:outputText value="#{hit.lastName}," style="margin-right:1px;font-size:xx-small" id="lastName" /> <h:outputText value="#{hit.firstName}" style="font-size:xx-small" id="firstName" /> </a4j:commandLink> </h:panelGrid> </rich:panel> .... .... ... </rich:dataTable>
My datascroller and the data table code snippets are as shown above and the above a4j:commandLin's action is not being called when I navigate to the next page and try to click this link from that page. Please let me know what is happening here. without the a4j:datascroller my links in thedata table appear to work just fi ne. Any help in this is highly appreciated. Thanks in advance