[ http://issues.apache.org/jira/browse/TAPESTRY-289?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-289:
-------------------------------------------
Resolution: Duplicate
Assign To: Howard M. Lewis Ship
> [3.1] Problem with BeanProvider / BindingBeanInitializer and localized strings
> ------------------------------------------------------------------------------
>
> Key: TAPESTRY-289
> URL: http://issues.apache.org/jira/browse/TAPESTRY-289
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: dpr
> Assignee: Howard M. Lewis Ship
>
> When using <set> in <bean> expressions are evaluated in the context of
> first created component instance (with some locale) and not in the context of
> current component instance (with current locale).
> <binding> in <component> works ok. So labels are localized correctly, but
> validation
> messages always appear in one language (the one in witch was created first
> page instance).
> <bean name="passwordValidator"
> class="org.apache.tapestry.valid.StringValidator" lifecycle="page">
> <set name="required" value="ognl:true"/>
> <set name="clientScriptingEnabled" value="ognl:true"/>
> <set name="requiredMessage" value="message:Password.required-msg"/>
> </bean>
> <component id="password" type="ValidField" property="passwordField">
> <binding name="displayName" value="message:Password.label"/>
> <binding name="value" value="ognl:password"/>
> <binding name="hidden" value="ognl:true"/>
> <binding name="validator" value="ognl:beans.passwordValidator"/>
> </component>
> Object graph in BeanProvider.getBean():
> http://ok.lirosta.lt/~dpr/bug.gif
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]