Hi Rudy, at first thank you very much for your help! I tried with the code you suggest me....but....I don't like it because if I click each page I will load the entire resultSet and this doesn't solve my problem. I would only 10 object in session because each object is too complex and composed by a lot of child list properties!!!!
I'm going crazy!!!! Cheers, Valentina Rudy De Busscher wrote: > > Hi, > > You can have a look at this page. > http://wiki.apache.org/myfaces/WorkingWithLargeTables > > regards > Rudy. > > On 10 February 2011 14:35, vale_java_dev <[email protected]> > wrote: > >> >> Hi all! >> >> I explain my situation: >> I have to display a tipical dataTable with his dataScroller. >> Objects in the list are more complex and I try to load from db only data >> for >> the current page; for example: if I display 10 rows for page I will get >> from >> db only first, second, third, etc 10 records using between rownum >> clausole >> on the query. >> >> [CODE] >> int pageIndex = >> >> (Integer)getRfxListScroller().getAttributes().get(getRfxListScroller().getPageIndexVar()); >> int rowsForPage = getRfxListScroller().getRows(); >> rfxList = getBeanRfx().getAllRfx(getBeanUser(), pageIndex, rowsForPage); >> >> public HtmlDataScroller getRfxListScroller() { >> if(rfxListScroller == null) >> rfxListScroller = (HtmlDataScroller) >> findComponentInRoot("rfxListScroller"); >> return rfxListScroller; >> } >> [/CODE] >> >> I tried this....but unfortunatly the dataScroller doesn't work because it >> doesn't know the complete resultSet, I suppose..... >> >> So....there is a work around to solve this problem? >> >> Thanks in advance for suggestions! >> Cheers, Valentina >> -- >> View this message in context: >> http://old.nabble.com/%3Ct%3AdataScroller%3E-question-tp30892417p30892417.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > %-|%-|%-|%-|%-|%-|%-|%-|%-|%-|%-|%-|%-|:thinking:%-|%-|%-| -- View this message in context: http://old.nabble.com/%3Ct%3AdataScroller%3E-question-tp30892417p30893929.html Sent from the MyFaces - Users mailing list archive at Nabble.com.

