You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Kalra, Ashwani" <ak...@capgemini.com> on 2005/12/05 05:04:39 UTC

RE: Struts validation.xml size

Thanks a lot, this is exactly I was looking for. Looks like I am out of
touch for long time.

Regds
Ashwani

-----Original Message-----
From: Niall Pemberton [mailto:niall.pemberton@blueyonder.co.uk]
Sent: Wednesday, November 30, 2005 7:47 PM
To: Struts Users Mailing List
Subject: Re: Struts validation.xml size

Upgrade to Validator 1.2.0 there are some features that make this
easier.

In versions of validator before 1.2.0, you would have to define all
forms in each locale. Now locales inherit from their "parent" locale -
what I mean by that is for example the "en_US" locale formset would
inherit from a "en"
locale formset, which in turn will inherit from the default formset.

You can also use the new "extends" attribute to explicitly inherit
forms, which can cut down on the duplication.

See here for more details, see
http://wiki.apache.org/jakarta-commons/ValidatorVersion120
http://jakarta.apache.org/commons/validator/

Niall

----- Original Message -----
From: "Kalra, Ashwani" <ak...@capgemini.com>
Sent: Wednesday, November 30, 2005 10:08 AM

Hi,
I have at least one  validation that is different in each country. Does
it mean that  I have to define a formset for each language and Country
combination.
If I have to do this way its size and manageability is my concern.  Is
there a better way?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org