Hi Tathagat, I am very sorry, but I do not understand where you are heading. Why should the second scroller have all data then? I really don't get your explanation.
regards, Martin On Feb 1, 2008 4:18 PM, Tathagat <[EMAIL PROTECTED]> wrote: > Hi All. > Current data scroller gives a paginator in the following format: > 1-100, 101-200, 201-300.. and so on. > > What I would like is value of a column (along which the table is sorted), > for example: > AAA-CAT, CAU-FAX, FBC-MPC... and so on. > The advantage is that user sees immediately where the value lies in the > paginator (and does not have to guess). > > I implemented my own solution for it. > Extended t:dataScroller classes with my own (regsitering faces-config, new > taglib, entry in web.xml). > I had to override the following method in > org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer > protected HtmlCommandLink getLink(FacesContext facesContext, > HtmlDataScroller scroller, > String text, int pageIndex) > > Now the problem here was to get the data of the table mentioned in "for" > property of datascroller. > By default dataScroller has only "rows" (property of t:dataTable) amount > of data (which is currently visible to user). > --scroller.getUIData() > > So I used the following hack. > Define the same scroller and table with different IDs with rows=total > number of rows and style=display:none; > Causing it not to show on the page but having the second sroller all the > data in it. > > Thus I could build a paginator as mentioned above. > > My questions is: > Is there a better way to get all the data in the table? All methods which > provide data are protected. > > Thanks for your time. > Tathagat > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

