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
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
Michael Courcy wrote:
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
Hi François
Thanks a lot, but actually my goal was more on understanding the loop
inside the form and how the model is updated in such situation.
I keep your link though, I'll have a look on it.
Michael.
Francois Armand a écrit :
Michael Courcy wrote:
You mean that using
Hi,
I make some nice night experience about editing a list in a form.
Here is my template
===
t:form
t:loop source=users value=user
t:textfield value=user.loginUser t:validate=required/br/
/t:loop
t:submit /
/t:form
and here is my page