If no value is supplied, T5 checks for a property name based on the id.
But the id is simply a string and not interpreted as a prop expression,
so "." doesn't mean anything special there.
That might be an interesting enhancement though. I'll add a JIRA.
Cheers,
Nick.
Marc A. Donis wrote:
Aha...
I need to specify a TextField's value property, not its id. But why
does id work when the value is bound to an attribute of the component
class?
Anyway, problem solved.
----- Original Message ----- From: "Marc A. Donis" <[EMAIL PROTECTED]>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Saturday, October 06, 2007 16:08
Subject: T5: Parameter(s) translate, value are required for
org.apache.tapestry.corelib.components.TextField, but have not been bound.
Hi again,
I have a form in EditAccount.html, which contains:
<t:textfield t:id="user.username" t:validate="required"/>
EditAccount.java has a refernce to a user, along with a get/set pair of
accessors, and the User object has gettes and setters for its
properties, as well.
Nonetheless, I am encountering:
Parameter(s) translate, value are required for
org.apache.tapestry.corelib.components.TextField, but have not been bound.
seeming to imply that it can't find the property named "user.username".
Note that if I try this with a property which is actually in the
EditAccount class, it works just fine. It this sort of thing just not
supported? I must be missing something. Thoughts?
Thanks,
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]