Can some one give me a sample code of how to access the current page the scroller is, in the backing bean.
<rich:datascroller for="selCrsFceGrid" maxPages="10" pageIndexVar="pageIndex" immediate="true" >
<!-- <a4j:support event="onpagechange" ajaxSingle="true" reRender="viewFacCourseEvalForm" action="#{courseSearch.loadFceList()}" />-->
<a4j:actionparam actionListener="#{courseSearch.loadFceList()}" name="pIndex" value="#{pageIndex}" assignTo="#{courseSearch.pageIndex}"/>
</rich:datascroller>
I tried many things. I am assigning it to PageIndex of my backing bean courseSearch.
But it does not print the current value the scroller is on.
It prints the page I was on rather than the page I am on. So If I were in 4 and change to 7 it prints 4 but I need to get page 7 printed in the bean.
Please let me know if anyone has any idea.
Hi,
You should bind "page" attribute to integer bean property.