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
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.
>
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
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.
>
>
>
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
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
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
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
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
>
Hi Natia,
just correcting:
_visit.setMyLoginId(u.getUserName());
and check Jonathan's tip. (old Tapestry libraries in your classpath.)
Marcus
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
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;
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
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
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
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
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
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
---
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
I didn't
>>>>>>
>>>>> know
>>>
>>>> you could set it. Even if I'm wrong, using this design pattern might
>>>>>>
>>>>> clean
>>>
>>>> things up a little.
>>>>>>
&
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
tUser(User user)
> >>> currUser.getUser()
> >>>
> >>>
> >>> or whatever you like.
> >>>
> >>>
> >>>
> >>> José Paumard wrote:
> >>>
> >>>> Natia,
> >>&
>> 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
Hi Natia,
Can you post ASO code?
Marcus
>> 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
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
t; José Paumard wrote:
>>>>
>>>>
>>>>
>>>>> Natia,
>>>>>
>>>>> I think there is a mistake in your code :
>>>>>
>>>>> private User currUser ;
>>>>> private boo
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
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;
@
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
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&
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
; 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
>>>
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é
>>
, 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
, 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
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
#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
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
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
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 {
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
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
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
44 matches
Mail list logo