Can't get MyFaces with tiles to save and restore bean states right

2005-03-24 Thread Ray Clark
I have an app that is using tiles and MyFaces 1.0.8. The page comes up and looks great. But something is wrong when the page gets posted back to the server. The data gets sent because it adds a row to the database, but when the page is redisplayed the values are lost. The getters always return

Re: Can't get MyFaces with tiles to save and restore bean states right

2005-03-25 Thread Bill Dudney
Hi Ray, A couple of thoughts: What is the scope of your bean (request, app etc) in the for the object. When you say that the db is updated do you mean the user hits 'go' the db is updated then when the page is being rendered the values are set to null? If that is the case I don't think MyFaces

Re: Can't get MyFaces with tiles to save and restore bean states right

2005-03-27 Thread Ray Clark
You were right. I had the bean as request instead of session. (newbie error) That fixed it. Thanks for responding. Ray --- Bill Dudney <[EMAIL PROTECTED]> wrote: > Hi Ray, > > A couple of thoughts: > > What is the scope of your bean (request, app etc) in > the > for the object. > > When

Re: Can't get MyFaces with tiles to save and restore bean states right

2005-03-28 Thread Victor Gomez
Hi Bill, How do you leverage the x:saveState(or preserveModel) functionality? I have an application that just adds record to a DB and keeps a table (x:datatable) updated with those db records. Should I preserve the state of the x:datatable(maintaining it every time a record is added) or should

RE: Can't get MyFaces with tiles to save and restore bean states right

2005-03-28 Thread Korhonen, Kalle
> -Original Message- > From: Victor Gomez [mailto:[EMAIL PROTECTED] > Sent: Monday, March 28, 2005 2:31 PM > To: MyFaces Discussion > How do you leverage the x:saveState(or preserveModel) functionality? > I have an application that just adds record to a DB and keeps > a table (x:datatable