struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deadman, Hal" <Hal.Dead...@Tallan.com>
Subject RE: New Shale Regex Validation Tag
Date Fri, 12 Aug 2005 19:17:20 GMT
Can the mask attribute be a JSF EL expression pulling the mask from a
resource bundle?

> -----Original Message-----
> From: Romero, Ron [mailto:Ron.Romero@txaccess.com]
> Sent: Friday, August 12, 2005 3:12 PM
> To: Struts Developers List
> Subject: RE: New Shale Regex Validation Tag
> 
> 
> On August 12, 2005, Craig McClanahan [mailto:craigmcc@gmail.com]
wrote:
> 
> > On 8/12/05, Romero, Ron <Ron.Romero@txaccess.com> wrote:
> >
> > > I'm working with the Shale Validator.  I would like a new, simpler
> > > "regexValidator" tag that better supports my situation (and
> hopefully
> > > supports other people's situation).
> >
> > I'm definitely +1 on having support for regex validation ... but
> > doesn't the "mask" validator already do that for you?  If not, it
> > would seem the right answer would be adding a new Commons Validator
> > implementation so that all the frameworks using C-V would benefit.
> >
> 
> Actually, what I'm going for is more of a "repackaging" of the mask
> validator, a convenience tag.  The tag would resolve into a
> commonsValidator, but it would look up the mask and arg first.  You
> get the same functionality as the mask validator, but you can
> administer it from a single config file.  It's a cleaner separation of
> concern.  The JSF developer concentrates on what is being input, a
> name, a phone number, a social security number.  And the regex
> developer (who rights the regex config file) concentrates on what
> those types look like (ten digit phone number codes, no punctuation
> Characters in names, etc.)
> 
> This wouldn't go into C-V because it's not another type of validation,
> it's about making a cleaner interface for faces developers.
> 
> > This would also mean you don't need a new tag ... the existing Shale
> > tags for integrating validators would work.
> 
> Ah, but I want a new tag! :-)  Seriously, a new tag would make it
> easier to use --- it's simpler to code and to understand.  True, it
> would hide the flexibility and power of the commonsValidator tag, but
> we don't need or want that additional flexibility, and we'd like to
> hide it from everyone else.
> 
> 
> > Craig
> 
> Ron
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 


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


Mime
View raw message