Problem with datascroller
nnkfws333 Oct 5, 2011 2:43 PMI'm having a little issue and I am sure it is something trivial that someone can help me out. I have a search feature where I use a a4j:commandbutton to perform a search that will display results on the page. The results are in a rich:datatable to be span across a number of pages uses a rich:datascroller.
I am using jsf2 along with richfaces 3.3.3. It is a session scoped bean where I stay on the same page and use the reRender option to update certain panels. The datatable renders fine but the datascroller is having issues. The data scroller will appear but no numbers appear nor are the buttons are working. Even if I refresh the datascroller never changes.I have tried to reRender the datascroller with no luck.
Below is just a sample piece of code...
<f:view> <h:form> <rich:panel> <a4j:commandButton value="SEARCH" id="advancedSearchButton" actionListener="#{facetedSearchBean.deselect}" action="#{facetedSearchBean.performSearch}" reRender="searchResultsPanel" type="button" status="waitStatus"/> <a4j:status id="waitStatus" forceId="true" onstart="javascript:Richfaces.showModalPanel('waitModalPanel');" onstop="javascript:Richfaces.hideModalPanel('waitModalPanel');"/> <rich:modalPanel id="waitModalPanel" autosized="true" width="25" height="25" moveable="false" resizeable="false" > <h:graphicImage value="images/load.gif" style="width: 25px; height: 25x;" /> </rich:modalPanel> </rich:panel> <rich:panel id="searchResultsPanel"> <rich:datascroller id="topDataScroller" for="searchResultsTable" ajaxSingle="false"/> <rich:dataTable id="searchResultsTable" border="0" rows="#{facetedSearchBean.numberOfResults}" value="#{facetedSearchBean.searchHits}" var="hits"> <rich:column> ... </rich:column> </rich:dataTable> </rich:panel> </f:form> </f:view>
Can anyone help me out?
-
datascroller.JPG 4.5 KB