Hi jakob, thanks for the reply. I need the index of the collection, of the first shown element on the page. If I navigate to the 3rd page of the dataTable, the UIData.getFirst() gives me the index of the first shown item in the Collection from the 3rd page. This works well, but I can sort the table by klicking on the header of the rows. If I click on sorting, the whole collection is sorted, and splittet to the shown pages. UIData.getFirst() gives me the same results, as I had before without sorting. Thanks, Klaus
Jakob Korherr <[email protected]> Gesendet von: [email protected] 26.01.2010 22:06 Bitte antworten an "MyFaces Discussion" <[email protected]> An MyFaces Discussion <[email protected]> Kopie Thema Re: Customizing scroller by using t:dataTable with t:dataScroller Hi Klaus, I'm not sure if I understand your problem. What index do you need? The index of the first item, which is currently displayed? Please provide a little bit more information about the problem, maybe also a JSP snippet. Regards, Jakob 2010/1/26 Klaus SCHUSTER <[email protected]> > I tried to get the UIData.getFirst() for the first index. this is ok, but > there is no chance to get the right index of the collection if the data is > sorted again. > Is there any action event on clicking the row subject for sorting? > > > > > Klaus SCHUSTER <[email protected]> > 22.01.2010 07:27 > Bitte antworten an > "MyFaces Discussion" <[email protected]> > > > An > [email protected] > Kopie > > Thema > Customizing scroller by using t:dataTable with t:dataScroller > > > > > > > Hello, > > I'm using a t:dataTable attached to a t:dataScroller. Currently, the > t:dataScroller shows the navigation buttons and a list of page numbers > (e.g.: first, previous 1 2 3 etc). > I am using a collection in my t:dataTable by the attribute value=... > The Scroller shows me only 10 items of the full Collection. > My question is: How can I have access to the 10 shown items ? I only have > my whole list in the backing bean. > > The second question is, what happens if I sort the elements, can I get the > > shown items also in a sorted way? > Thanks, > > Klaus > > > > > Der Austausch von Nachrichten mit o.a. Absender via e-mail dient > ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen > über dieses Medium nicht ausgetauscht werden. > > Correspondence with a.m. sender via e-mail is only for information > purposes. This medium is not to be used for the exchange of > legally-binding communications. > > > > > > Der Austausch von Nachrichten mit o.a. Absender via e-mail dient > ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen > über dieses Medium nicht ausgetauscht werden. > > Correspondence with a.m. sender via e-mail is only for information > purposes. This medium is not to be used for the exchange of legally-binding > communications. > Der Austausch von Nachrichten mit o.a. Absender via e-mail dient ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen über dieses Medium nicht ausgetauscht werden. Correspondence with a.m. sender via e-mail is only for information purposes. This medium is not to be used for the exchange of legally-binding communications.

