Hi Kristian, I think I have solve the problem. Not sure what's happening. Basically
I have three properties @Persist private User user = new User (); @Persist private Login login = new Login(); @Persist private Info info = new Info(); @Component(id = "loginIdTxt", parameters = {"size=15", "maxLength=20", "validate=required", "value=login.loginId"}) private TextField loginIdTxt; @Component(id = "fnameTxt", parameters = {"size=50", "maxLength=20", "validate=required", "value=info.firstName"}) private TextField fnameTxt; where as User { private Login; private Info} The properties happen to be in application state no matter what Persist I used. Then I remove the child properties and access the component as follow : @Persist private User user = new User (); @Component(id = "rePasswordTxt", parameters = {"size=15", "maxLength=40", "validate=required", "value=repassword"}) private PasswordField repasswordTxt; @Component(id = "fnameTxt", parameters = {"size=50", "maxLength=20", "validate=required", "value=user.userInfo.firstName"}) private TextField fnameTxt; And magically everything running well. It get its own Session now. Is this a bug or what ? Ronny >> alas, there is one usecase where such problem can still occur. that depends on how you initialize your fields. would you kindly explain this statement and provide example Regards, Ronny kristian.marinkovic wrote: > > then you have to put @Persist to all user spcific properties... it works. > > all fields will be saved/restored to/from the users own session > > just try this: > @Persist > private String data; > > alas, there is one usecase where such problem can still occur. > that depends on how you initialize your fields. maybe you can > post your code if it still doesnt work. > > g, > kris > > > > > Ronny L <[EMAIL PROTECTED]> > 02.07.2008 11:34 > Bitte antworten an > "Tapestry users" <users@tapestry.apache.org> > > > An > users@tapestry.apache.org > Kopie > > Thema > Re: AW: Fields are shared among application without using @Persist > > > > > > > > > Hi Martin, > > Thanks for your reply. > Basically I only want to keep all page properties (Forms, etc) specific to > the user's session/page and not sharing the information among other user. > However, adding the @Persist(client) doesn't make any different. It keeps > retrieving/modifying the same properties (2 browsers IE + firefox > running). > > Regards, > Ronny > > > Martin Kersten-2 wrote: >> >> Hi Ronny, >> >> I didnt got it fully but take a look at @ApplicationState annotation. >> This is how we store LoginStatus: >> >> @ApplicationState >> LoginStatus loginStatus; >> >> {... >> >> loginStatus.login(user, password); >> loginStatus.isLoggedIn()... >> Etc. >> >> ...} >> >> >> Cheers, >> >> Martin (Kersten) >> >> >> -----Ursprüngliche Nachricht----- >> Von: Ronny L [mailto:[EMAIL PROTECTED] >> Gesendet: Mittwoch, 2. Juli 2008 10:59 >> An: users@tapestry.apache.org >> Betreff: Fields are shared among application without using @Persist >> >> >> Hi all, >> >> I'm having a trouble understanding the persistence value. >> >> Let say I have a property as follow: >> >> private String password; >> >> Although there's no @Persist annotation. The value always retrieved back >> even though I'm opening a new browser (Not another tab). >> >> Basically, two users that's filling up a form could have they > information >> mix up. How would you guys solve this issue. I'm using Jboss+Tomcat & T5 >> 5.0.13 >> >> Thanks. >> Ronny >> >> >> -- >> View this message in context: >> > http://www.nabble.com/Fields-are-shared-among-application-without-using-%40Persist-tp18233088p18233088.html > >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Fields-are-shared-among-application-without-using-%40Persist-tp18233088p18233649.html > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- View this message in context: http://www.nabble.com/Fields-are-shared-among-application-without-using-%40Persist-tp18233088p18236184.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]