commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hasan Turksoy" <>
Subject Re: Commons validator default validation
Date Thu, 29 Mar 2007 06:26:06 GMT
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,
  <s:commonsValidator type="required" .... />
  <s:commonsValidator type="mask" mask="..." .... />

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)


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message