This content has been marked as final.
Show 6 replies
-
1. Re: Reset datascroller
sergeysmirnov Apr 15, 2007 4:05 PM (in response to furic)you have to reset not only the table, but the datascroller as well. I.e. add id of datascroller to reRender
-
2. Re: Reset datascroller
furic Apr 16, 2007 3:58 PM (in response to furic)I've tried to rerender also datascroller with no success:
<a4j:commandButton type="submit" value="Find" reRender="clientsTable,paginator" status="ajaxStatus" id="findBtn" actionListener="#{clientsBean.resetDataScroller}"/> <rich:dataTable value="#{clientsBean.tableModel}" var="client" binding="#{clientsBean.table}" id="clientsTable" rows="16" rendered="#{not empty clientsBean.tableModel}"> <f:facet name="footer"> <rich:datascroller id="paginator" maxPages="10" status="ajaxStatus" renderIfSinglePage="true" ajaxSingle="false" > <f:facet name="first"> <t:graphicImage url='#{requestScope["basePath"]}img/buttons/first.gif' alt="First"/> </f:facet> <f:facet name="next"> <t:graphicImage url='#{requestScope["basePath"]}img/buttons/next.gif' alt="Next"/> </f:facet> <f:facet name="previous"> <t:graphicImage url='#{requestScope["basePath"]}img/buttons/prev.gif' alt="Previous"/> </f:facet> <f:facet name="last"> <t:graphicImage url='#{requestScope["basePath"]}img/buttons/last.gif' alt="Last"/> </f:facet> </rich:datascroller> </f:facet> </rich:dataTable>
-
3. Re: Reset datascroller
sergeysmirnov Apr 16, 2007 4:09 PM (in response to furic)Ok, I did not realize you have a datascroller inside the table. In this case, you do not need to point to the datascroller explicitly
-
4. Re: Reset datascroller
furic Apr 16, 2007 4:15 PM (in response to furic)Ok, but what can be the solution ?
What am i doing wrong ?
Thanks -
5. Re: Reset datascroller
furic Apr 17, 2007 2:37 AM (in response to furic)Does anyone have working example updating dataTable with scroller from ajax request ?
RichFaces team, should i open the issue if solution can't be found ?
I can create mock-up application that reproduces the issue
Thanks -
6. Re: Reset datascroller
sergeysmirnov Apr 17, 2007 2:47 AM (in response to furic)yes. open the new issue and attach the your mockup there.