You mean that using value="user.loginUser" tapestry alway update the same thing.
Thus if I change the method

User {
void setLoginUser(String loginUser){
  this.loginUser = loginUser;
  System.out.println(loginUser);
}

It should at least output the value I input in my textField ...
And that's right, it actually what's going on the input are correctly output

But When I outout the user itself in the page

public void setUser(User user) {
       this.user = user;
       System.out.println(user);
   }

the old value is kept

actually setUser is call before setLoginUser ...

Ok thanks I've to work on that.


Szemere Szemere a écrit :
I'm going through something similar right now. Looking at the docs:

http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentstextfield

it seems that your:

value="user.loginUser"

determines the field that gets updated when the form is submitted. So as
you've got 6x fields that point to the same field in your form, that's what
gets updated (take a peek at 'user' to confirm this).

I think you need to override the 'value' setting to point to your different
objects.



--
Michael Courcy
http://courcy.blogspot.com
http://courcy-en.blogspot.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to