This content has been marked as final.
Show 3 replies
-
1. Re: Datascroller works with a4j:repeat ?
ilya_shaikovsky Jun 9, 2009 8:26 AM (in response to daxxy)1) define rows attribute for repeat not for datascroller.
2) add reRender to datascroller and taking into consideration that repeat itself - has no representation int DOM wrap it into outputPanel and reRender outputPanel from datascroller. -
2. Re: Datascroller works with a4j:repeat ?
daxxy Jun 9, 2009 12:45 PM (in response to daxxy)I think I understand what you are suggesting. This code sort of worked:
<rich:datascroller for="officeViewTable" reRender="officeViewTable" /> <a4j:outputPanel> <a4j:repeat value="#{officeViewList.resultList}" var="_officeView" rows="10" id="officeViewTable"> <rich:dataTable var="_ov1" value="#{_officeView}" /> <rich:dataTable var="_ov1" value="#{_officeView}" /> <rich:dataTable var="_ov1" value="#{_officeView}" /> </a4j:repeat> </a4j:outputPanel>
(there are 3 separate dataTables embedded in this repeat component)
Now the datascroller seems to render correctly. I got the correct number of datascroller panels (ie they correspond to the number of repeat components)
The problem now is that clicking through the datascroller doesn't change the contents of the table on that page. In other words, the first record is Office ID 5164 whether I click on the first page of the datascroller, the 3rd or the 10th.
I barely grasp this Ajax stuff -- what, again, am I missing?
TDR -
3. Re: Datascroller works with a4j:repeat ?
daxxy Jun 9, 2009 12:50 PM (in response to daxxy)BTW outputPanel doesn't seem to add anything so I took it out. the reRender target for datascroller has to be a UIData component. An outputPanel component didn't work.
TDR