The t:id attribute is not meant as a way to tell Tapestry what are you editing: it's just an id that you can use to refer to it in another component (Label, for example) or in your page class.

Ok you're right but if I try this

<input t:type="TextField"  t:value="user.name"/>

I get a failure because tapestry expect an id

Then  if  I do this

<input t:type="TextField" t:id="name"  t:value="user.name"/>

I have to provide the setter and the getter for name and I still get an error when I submit.

The only thing that work properly is this

<input t:type="TextField" t:id="name"  t:value="name"/>

But I comeback to my initial question : I just can't populate the value to the bean directly from the form

The best thing I can do is this

public String getName(){
return user.getName();
}

public void setName(String name){
user.setName(name);
}


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


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

Reply via email to