You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by mei xiao <me...@myvoice.com.au> on 2003/09/01 05:00:08 UTC

Logined user cannot update himself/herself with Flux

Hi,

I tried turbine sample application: Flux. I logined and updated my first name.
it seems successful, and database updated. But after I logouted, the original first name
restored! I checked source code, and found out the reason for that is the  "user" in "rundata"
was not be updated, and it was saved when user logout.

I wrote my own action class, based on FluxUserAction's doUpdate method. 
I added data.setUser(user) (user is the user in flux) at the end, and printed out with	
"System.out.println(data.getUser().getFirstName())" to confirm it. 
The wield thing is after I went to other screens. $data.User.FirstName still printed
the original value?!

Can anybody tell what is the reason for that, or I missed something.
Any help much appreciated. 

Regards,

Mei Xiao
				

MyVoice http://www.myvoice.com.au

Re: Logined user cannot update himself/herself with Flux

Posted by Akmal Sarhan <as...@byteaction.de>.
data.save();


;-)
Akmal
----- Original Message ----- 
From: "mei xiao" <me...@myvoice.com.au>
To: <tu...@jakarta.apache.org>
Sent: Monday, September 01, 2003 5:00 AM
Subject: Logined user cannot update himself/herself with Flux


> Hi,
>
> I tried turbine sample application: Flux. I logined and updated my first
name.
> it seems successful, and database updated. But after I logouted, the
original first name
> restored! I checked source code, and found out the reason for that is the
"user" in "rundata"
> was not be updated, and it was saved when user logout.
>
> I wrote my own action class, based on FluxUserAction's doUpdate method.
> I added data.setUser(user) (user is the user in flux) at the end, and
printed out with
> "System.out.println(data.getUser().getFirstName())" to confirm it.
> The wield thing is after I went to other screens. $data.User.FirstName
still printed
> the original value?!
>
> Can anybody tell what is the reason for that, or I missed something.
> Any help much appreciated.
>
> Regards,
>
> Mei Xiao
>
>
> MyVoice http://www.myvoice.com.au
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>