Hi comunity,

when i use this code (in my *.page) all works fine:

<bean name="dateValidator" class="org.apache.tapestry.form.validator.Required" lifecycle="render">
       <set name="message" value="ognl:my.package.ErrorMsg"/>
</bean> <component id="inputBirthday" type="TextField">
       <binding name="displayName" value="ognl:my.package.birthdayMsg"/>
       <binding name="validators" value="ognl:beans.dateValidator"/>
       <binding name="translator" value="ognl:beans.dateTranslator"/>
       <binding name="value" value="ognl:birthday"/>
 </component>

But if i try this with ognl, it fails:

<component id="inputBirthday" type="TextField">
       <binding name="displayName" value="ognl:my.package.birthdayMsg"/>
<binding name="validators" value="validators:required[ognl:my.package.ErrorMsg]"/>
       <binding name="translator" value="ognl:beans.dateTranslator"/>
       <binding name="value" value="ognl:birthday"/>
</component>


I got "ognl:my.package.ErrorMsg" as errormessage. Is there no support for ognl-expression in the "[]"?
Is my code wrong?


Best regrads

Rudolf B.

Reply via email to