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.
Andreas Bulling wrote:
Sorry for the double-posting! :(
As this first message didn't appear on the list within
reasonable time I thought it got lost or got refused.
On 05. Feb 2006 - 13:49:39, Andreas Bulling wrote:
| Hi everybody,
|
| I have a problem with the validation messages in T4 and after
| searching the archives without finding a solution to this problem
| I hope someone on this list can help me:
| The problem is that not all validation messages are localized
| to German but I don't know how to override the default ones/
| use my own messages.
|
| Thanks in advance,
| Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]