Hello all,
Using Struts, I need to validate input forms. My web service has to
handle mutliple language, so I'm using i18n techniques.
However, the validation I need are locale-independant. So I have
written a validation.xml like this :
<form-validation>
<formset>
<form name="destinatForm">
<field
property="dob_dg"
depends="mask">
<arg0 key="destinations.adob.destination"/>
<msg name="mask" key="destinations.all.mask"/>
<var>
<var-name>mask</var-name>
<var-value>^[2-5][0-9]*$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
This leads to an error. Log says that destinatForm can't be found
under locale en_US.
In fact, if I just copy-paste this formset under a new one with parameters
<formset language="en">
everyting's fine, and my validation is ok.
I don't want to have redundancies when it is not needed. Isn't it
possible to only define general formset, and only to override what is
clearly locale-specific ?
Can someone tell me where I'm wrong ?
Thanks very much for any help.
--
Marc Demlenne
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]