Q:

Previously entered values get disappeared in JSF datatable

I am a newbie in JSF. Here's my problem:
I have a data table inside a form in JSF page.
     <h:form id="mainForm">
         <rich:dataScroller for="itemDataTable" maxPages="30"/>                                 
         <rich:dataTable rowKeyVar="rkVar" rows="15" id="itemDataTable" value="#{itemsController.itemDM}" var="r">
            <h:column id="setValue">
                <h:inputText id="finalItem" valueChangeListener="#{itemsController.recalculate()}" value="#{r.items.prices}"/>
            </h:column>
            ...
            ...
        <!-- other columns --> 
        </rich:dataTable>
        <rich:dataScroller for="itemDataTable" maxPages="30"/>                                 
    </h:form>

I have around 15 pages in my data table. I entered the final values for finalItem in first page and click the next page.Now if i come back to first page, I found that all the previously entered values were disappeared from the data table.
Please help on this and please let me know if i am missing some attributes in the data table. I would also like to know if there is any possibility to handle this from JQuery.
Any assistance will be appreciated!

A:

In rich:dataScroller default value for ajaxSingle attribute is true. You have to make it false explicitly. The problem is your datatable values are not being submitted because of ajaxSingle="true"  
Change your data scroller like this  
     <rich:dataScroller for="itemDataTable" maxPages="30" ajaxSingle="false"/>  

This should solve your problem.  
Please see the tag information of rich:dataScroller here  
http://livedemo.exadel.com/richfaces-demo/richfaces/dataTableScroller.jsf?tab=info&cid=574957
For Richfaces 4.X 
See this link for the attributes of rich:datascroller
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/ .   
You can use execute attribute to process your datatable on page change.  
<rich:dataScroller for="itemDataTable" maxPages="30" execute="your datatable id here"/>  

