Hi Rudi ;), thanks a lot for your answer! I will try after work ;)
Sincerly, Andreas On 06. Feb 2006 - 14:43:42, Rudolf Baloun wrote: | hi Andi :-), | | read the solution here: | http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.fields | | | i got this 2 examples (dateTranslator and required-validator) in my page: | | <bean name="dateTranslator" | class="my.package.LenientDateTranslator,pattern=dd.MM.yyyy,message=Date | Wrong"/> | <component id="inputBirthday" type="TextField"> | <binding name="displayName" | value="ognl:page.messagesUtil.birthdayMsg"/> | <binding name="validators" value="validators:required"/> | <binding name="translator" value="ognl:beans.dateTranslator"/> | <binding name="value" value="ognl:pageBean.customer.ado.birthday"/> | </component> | | if you want to set your own message in validation replace: | <binding name="validators" value="validators:required"/> | with: | <binding name="validators" value="validators:required[MY MESSAGE IS HERE]"/> | | by the way: | | i found out, that you cant put ognl expressions in the "[...]". If you | want to do it, you have to do this (e.g. for dateTranslator): | | <bean name="dateTranslator" | class="de.atron.tapestry.contrib.form.LenientDateTranslator"> | <set name="pattern">"MM.yyyy"</set> | <set name="message" value="ognl:dateValidatorMsg"/> | </bean> | | | hope this helped | | Rudolf B. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
