You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Marc A. Donis" <ma...@runbox.com> on 2007/10/06 16:08:13 UTC

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



Re: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

Posted by Nick Westgate <ni...@key-planning.co.jp>.
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" <ma...@runbox.com>
> To: "Tapestry users" <us...@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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

Posted by "Marc A. Donis" <ma...@runbox.com>.
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" <ma...@runbox.com>
To: "Tapestry users" <us...@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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org