i18n for Validation

 < Day Day Up > 



Validation requirements often vary quite a bit based on locale. For example, if we had a Web site that designed for users from France and the US, the forms these users fill out might have unique validation needs. In this case you need to create formset per language. If you do not specify a locale, it becomes the default locale. You specify the locale with the language attribute of the formset as follows:

    <formset language="fr">       <form    name=" inputFormTwoStep"> ... 



 < Day Day Up > 



Professional Jakarta Struts
Professional Jakarta Struts (Programmer to Programmer)
ISBN: 0764544373
EAN: 2147483647
Year: 2003
Pages: 183

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net