You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Erik Dreyer <ed...@austin.rr.com> on 2004/09/11 19:49:14 UTC
Valid Fields and localization
Hey All,
I'm having trouble localizing ValidFields (among other things).
ValidFields have a required attribute called "displayName". What is the
best way to localize this? I was hoping someone could assist me. Here's
a few things that I tried (see commented out lines from page specification):
From Property File:
emailAddress=Email Address:
From Page specification:
<component id="inputEmail" type="ValidField">
* <!-- <static-binding name="displayName"
value=="message:emailAddress"/> --> <!-- didn't work -->
<!-- <binding name="displayName"
expression="message:emailAddress"/> --> <!-- didn't work -->
<!-- <binding name="displayName" expression="emailAddress"/>
--> <!-- didn't work (no property-specification) -->
* <binding name="validator" expression="beans.emailValidator"/>
<binding name="value" expression="user.emailAddress"/>
</component>
From HTML template:
<input jwcid="inputEmail" size="30" maxlength="30"
class="textbox" />
Re: Valid Fields and localization
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
<message-binding name="displayName" key="emailAddress"/> :))
On Sep 11, 2004, at 10:49 AM, Erik Dreyer wrote:
> Hey All,
>
> I'm having trouble localizing ValidFields (among other things).
> ValidFields have a required attribute called "displayName". What is
> the best way to localize this? I was hoping someone could assist me.
> Here's a few things that I tried (see commented out lines from page
> specification):
>
> From Property File:
> emailAddress=Email Address:
>
> From Page specification:
> <component id="inputEmail" type="ValidField">
> * <!-- <static-binding name="displayName"
> value=="message:emailAddress"/> --> <!-- didn't work -->
> <!-- <binding name="displayName"
> expression="message:emailAddress"/> --> <!-- didn't work -->
> <!-- <binding name="displayName" expression="emailAddress"/>
> --> <!-- didn't work (no property-specification) -->
> * <binding name="validator" expression="beans.emailValidator"/>
> <binding name="value" expression="user.emailAddress"/>
> </component>
>
> From HTML template:
> <input jwcid="inputEmail" size="30" maxlength="30"
> class="textbox" />
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org