Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Olle Hallin
User2 sees the data from User1 userSession object when he get the > page, > > > > where User1 was earlier. > > > > So far I know, in case of ASO objects, the references in a page to > > these > > > > objects, should be set to null on pageDetach action. So each

Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Argo Vilberg
a page to > these > > > objects, should be set to null on pageDetach action. So each time when > > the > > > user is receiving the page from PagePool (or newly created page), he > > should > > > obtain also fresh ASO object from ApplicationStateManager. >

Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Olle Hallin
have got currently this problem not so often (usually it is one or two > > times in a two week period, in case when the application is used by 3-4 > > persons 8 hours per day), and when the problem happens, usually all > working > > users are receiving wrong data (they see the d

Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Argo Vilberg
e to help me. > > Thanks > Tomek > > > -- > View this message in context: > http://www.nabble.com/-T4--Two-users-see-the-same-data---problem-with-ASO-objects-tp25872478p25872478.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > >

Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Olle Hallin
Another thing to look for are object references inside the ASO. Perhaps they point to the same mutable object? Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se 2009/10/13 Martin Strand > Hmm, it sounds unlikely that different sessions would get mixed up like

Re: [T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread Martin Strand
Hmm, it sounds unlikely that different sessions would get mixed up like that. Perhaps the problem is with some other variable that happens to be visible to several users? I haven't done Tap4 in a while, but maybe you could look for: - any field in a page class, they should probably all be abstra

[T4] Two users see the same data - problem with ASO objects

2009-10-13 Thread TomMax
users). I hope someone will be able to help me. Thanks Tomek -- View this message in context: http://www.nabble.com/-T4--Two-users-see-the-same-data---problem-with-ASO-objects-tp25872478p25872478.html Sent from the Tapestry - User mailing list archive at

Re: Problem with aso

2008-09-06 Thread Geoff Callender
serExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String password; @Inject private IBusinessServicesLocator _businessSe

Re: Problem with aso

2008-09-04 Thread Natia Gdzelishvili
i've solved it, thank you all for helping On Wed, Sep 3, 2008 at 8:46 PM, Marcus <[EMAIL PROTECTED]> wrote: > Hi Natia, > just correcting: > > _visit.setMyLoginId(u.getUserName()); > > and check Jonathan's tip. (old Tapestry libraries in your classpath.) > > > Marcus >

Re: Problem with aso

2008-09-03 Thread Marcus
Hi Natia, just correcting: _visit.setMyLoginId(u.getUserName()); and check Jonathan's tip. (old Tapestry libraries in your classpath.) Marcus

RE: Problem with aso

2008-09-03 Thread Jonathan Barker
mber 03, 2008 08:14 > To: Tapestry users > Subject: Re: Problem with aso > > public class Visit { > // The logged in user > private boolean _loggedIn = false; > private String _myLoginId = null; > > public void noteLogIn(User user) { > _lo

Re: Problem with aso

2008-09-03 Thread Marcus
Hi Natia, My suggestions: - put the setter's on Visit class. - remove methods noteLogIn() and noteLogOut() , when you want to logout just attrib null to ASO, inside any page. and try this approach: @ApplicationState private Visit _visit; public Object submitLoginForm() { Class nextPage;

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
yes i've tried many times On Wed, Sep 3, 2008 at 5:09 PM, Geoff Callender < [EMAIL PROTECTED]> wrote: > Crazy thought - in your old project, if you're using Eclipse, have you > tried Project > Clean... ? > > > On 03/09/2008, at 11:05 PM, Natia Gdzelishvili wrote: > > no I'm not tapestry 4 user

Re: Problem with aso

2008-09-03 Thread Geoff Callender
Crazy thought - in your old project, if you're using Eclipse, have you tried Project > Clean... ? On 03/09/2008, at 11:05 PM, Natia Gdzelishvili wrote: no I'm not tapestry 4 user I'm new in tapestry i thins there is some problem with my project, i've make new project anad tested aso and i

Re: Problem with aso

2008-09-03 Thread Geoff Callender
the ASO is null in other classes that want to read it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private Str

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
no I'm not tapestry 4 user I'm new in tapestry i thins there is some problem with my project, i've make new project anad tested aso and it is working, I'll try to find out what it is thank you On Wed, Sep 3, 2008 at 4:59 PM, Geoff Callender < [EMAIL PROTECTED]> wrote: > Yeah, old habits die hard

Re: Problem with aso

2008-09-03 Thread Geoff Callender
Yeah, old habits die hard. On 03/09/2008, at 10:52 PM, Thiago H. de Paula Figueiredo wrote: Em Wed, 03 Sep 2008 08:44:43 -0300, Geoff Callender <[EMAIL PROTECTED] > escreveu: @ApplicationState private Visit _visit; private boolean _visitExists; Visit? Can I guess yo

Re: Problem with aso

2008-09-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Sep 2008 08:44:43 -0300, Geoff Callender <[EMAIL PROTECTED]> escreveu: @ApplicationState private Visit _visit; private boolean _visitExists; Visit? Can I guess you were a long time Tapestry 4 user? :) Thiago ---

Re: Problem with aso

2008-09-03 Thread Thiago H. de Paula Figueiredo
Em Wed, 03 Sep 2008 06:24:44 -0300, Fernando Padilla <[EMAIL PROTECTED]> escreveu: So you should use another class to contain a reference to the current active user, call it "UserContainer". I would call it "Session", then it could be used to hold more info about the user session. Thiag

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
I didn't >>>>>> >>>>> know >>> >>>> you could set it. Even if I'm wrong, using this design pattern might >>>>>> >>>>> clean >>> >>>> things up a little. >>>>>> &

Re: Problem with aso

2008-09-03 Thread Geoff Callender
o read it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String password; @Inject private IBusinessServic

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
tUser(User user) > >>> currUser.getUser() > >>> > >>> > >>> or whatever you like. > >>> > >>> > >>> > >>> José Paumard wrote: > >>> > >>>> Natia, > >>&

Re: Problem with aso

2008-09-03 Thread Carl Crowder
>> Natia, >>>> I think there is a mistake in your code : >>>> private User currUser ; >>>> private boolean userExists ; >>>> I dont think T5 will link userExists and currUser, currUser should be >>>> named user, or userExists currUserExists (please

Re: Problem with aso

2008-09-03 Thread Marcus
Hi Natia, Can you post ASO code? Marcus

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
>> private User currUser ; >>> private boolean userExists ; >>> I dont think T5 will link userExists and currUser, currUser should be >>> named user, or userExists currUserExists (please correct me if I'm wrong). >>> That said, what do you mean "I

Re: Problem with aso

2008-09-03 Thread Geoff Callender
quot;, do you mean that the ASO is null in other classes that want to read it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
t; José Paumard wrote: >>>> >>>> >>>> >>>>> Natia, >>>>> >>>>> I think there is a mistake in your code : >>>>> >>>>> private User currUser ; >>>>> private boo

Re: Problem with aso - a further query

2008-09-03 Thread photos
Quoting Hugo Palma <[EMAIL PROTECTED]>: You have two ways of setting the currUser DAO: 1. Copy fields from one object to another. Just add this to your code: currUser.setUsername(user.getUsername); currUser.setPassword(user.getPassword); . You don't have to assign the currUser field. That

Re: Problem with aso

2008-09-03 Thread Hugo Palma
it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String password; @

Re: Problem with aso

2008-09-03 Thread Sven Homburg
t;> >> private User currUser ; >> >> private boolean userExists ; >> >> >> >> I dont think T5 will link userExists and currUser, currUser should be >> >> named user, or userExists currUserExists (please correct me if I'm >> wron

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
gt; I dont think T5 will link userExists and currUser, currUser should be > > >> named user, or userExists currUserExists (please correct me if I'm > > wrong). > > >> > > >> That said, what do you mean "I cant access currUser&

Re: Problem with aso

2008-09-03 Thread Sven Homburg
be > >> named user, or userExists currUserExists (please correct me if I'm > wrong). > >> > >> That said, what do you mean "I cant access currUser", do you mean that > the > >> ASO is null in other classes that want to read it ? Or do you mean

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
; named user, or userExists currUserExists (please correct me if I'm wrong). >>> >>> That said, what do you mean "I cant access currUser", do you mean that >>> the ASO is null in other classes that want to read it ? Or do you mean that >>>

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
f I'm wrong). >> >> That said, what do you mean "I cant access currUser", do you mean that the >> ASO is null in other classes that want to read it ? Or do you mean that >> userExists is always false (which is normal, see above). >> >> José >>

Re: Problem with aso

2008-09-03 Thread Fernando Padilla
, do you mean that the ASO is null in other classes that want to read it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private Stri

Re: Problem with aso

2008-09-03 Thread Hugo Palma
, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>wrote: any exception stack ? 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]> I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String

Re: Problem with aso

2008-09-03 Thread José Paumard
ant access currUser", do you mean that the ASO is null in other classes that want to read it ? Or do you mean that userExists is always false (which is normal, see above). José Natia Gdzelishvili a écrit : I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
#x27;s always null ? > > > Natia Gdzelishvili wrote: > >> I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: >> >> public class Login { >>private String username; >>private String password; >>@Inject >>private IB

Re: Problem with aso

2008-09-03 Thread Hugo Palma
When you say that you can't access currUser what exactly does that mean ? That it's always null ? Natia Gdzelishvili wrote: I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String password; @Inj

Re: Problem with aso

2008-09-03 Thread Martijn Brinkers
you ASO object. Martijn On Wed, 2008-09-03 at 12:56 +0400, Natia Gdzelishvili wrote: > no > > On Wed, Sep 3, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>wrote: > > > any exception stack ? > > > > 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]> > &g

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
no On Wed, Sep 3, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>wrote: > any exception stack ? > > 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]> > > > I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: > > > > public class Login {

Re: Problem with aso

2008-09-03 Thread Sven Homburg
any exception stack ? 2008/9/3 Natia Gdzelishvili <[EMAIL PROTECTED]> > I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: > > public class Login { >private String username; >private String password; >@Inject >private IBusinessServices

Re: Problem with aso

2008-09-03 Thread Natia Gdzelishvili
can anyone help me, what I'm doing wrong... On Wed, Sep 3, 2008 at 11:06 AM, Natia Gdzelishvili <[EMAIL PROTECTED] > wrote: > I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: > > public class Login { > private String username; > private

Problem with aso

2008-09-03 Thread Natia Gdzelishvili
I'm using tapestry 5.0.14 ,i vahe problem with aso, my code is: public class Login { private String username; private String password; @Inject private IBusinessServicesLocator _businessServicesLocator; @ApplicationState private User currUser; private boolean userE