i'm thinking with a JSF mind,, and typing ideas flowing my mind.... may be
it fires some other idea in your (or others) mind too..

if i had such a requirement, i would;
1- create a custom jsf component..
say it <hsn:othersValidator />
2- bind commons validators, which you want to be used for your form's
"other" fields, to this custom component,
<hsn:othersValidator>
 <s:commonsValidator type="required" .... />
 <s:commonsValidator type="mask" mask="..." .... />
</hsn:othersValidator>

hsn:othersValidator will do;
get its validators(required, mask), at validation phase, and fires each of
them for all your form's "other" fields' values/submittedvalues...

that's it... as i stated above, this is just a brainstorm... i wrote it
because may help to fire some ideas about someone's(or yours)
implementation...

hasan...

Reply via email to