On Mon, 2005-01-31 at 14:42 -0800, Robert Breidecker wrote: > Alex, > > Thanks for the response. Actually, I'm using a > session -scope bean. Is the x:saveBean directive new > to 1.0.8, or did you mean x:saveState?
Sorry, I meant x:saveState of course :( Anyway, I find very strange that you have that problem with a session- scope bean. In this case, maybe the problem is somewhere else? Cheers, Alex > --- Alessandro Polverini <[EMAIL PROTECTED]> wrote: > > > On Mon, 2005-01-31 at 12:31 -0800, Robert Breidecker > > wrote: > > > I am currently working 1.0.7, so maybe this issue > > is > > > addressed in 1.0.8 or the latest head. I have a > > > results dataTable on my page that doesn't get > > loaded > > > until a search button is activated. The search > > event > > > populates my results dataTable using criteria that > > has > > > been entered on the page. That part works fine. > > The > > > dataScroller however does not work completely. It > > > renders itself fine the first time around, but > > when I > > > click on a link in the paginator, it seems to lose > > > information about the data in the dataTable. > > > > > > I looked at the MyFaces example and the dataTable > > is > > > loaded in the constructor of the managed bean. > > I'm > > > guessing that because I don't load my dataTable > > until > > > after the page has already been rendered once, > > that > > > this may be causing my problem. Does anyone know > > > about this issue or if it has been fixed? > > > > Hello Robert, > > I suppose you are using a request-scope backing > > bean, and this is an > > issue I had to face myself too. > > > > After digging around I discovered that the framework > > is unable to > > (re)populate an array (or better, a collection) if > > there is not already > > the "space" to put elements inside. > > So, I see two options: > > - in the constructor of the bean create an empty > > array with enough space > > to recreate all the data (wasteful) > > - simply use the x:saveBean directive for the array > > (or collection) of > > the backing bean. > > I choose the latter and it works great. > > > > Alex > > > > > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. > http://promotions.yahoo.com/new_mail

