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]


Reply via email to