Re: Internationalized messages for pure JavaScript client side validations

tm_jee <[email protected]> Fri, 08 Dec 2006 07:58:37 CST
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <25667874.1165586349916.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi Tarek, 

Can you let us know the link the quote is obtained from. Thx.

Regarding the client-side validation, this is how it works. The validation is defined just like normal validation in a *-validation.xml file, that defines the message. eg.

[code]
 <validators>
    <field name="name">
       <field-validator type="requiredstring">
          <message> some error message</message>
       </field>
    </field>
 </validators>
[/code]

with this validator configuration the message will be "some error message", there is a key attribute in available in the message tag that looks up the i18n key.

cheers.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=52413&messageID=105989#105989

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]