You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Matthias Wessendorf <mw...@pironet-ndh.com> on 2005/08/16 15:15:36 UTC
RE: {Spam?} Re: New Shale Regex Validation Tag
Gary,
that looks nice!
Haven't looked at Clay yet, only Faclets...
.Matthias
>
> Clay would work very well to spice up the client view. As
> for the XML configuration:
>
> <component jsfid="commonsValidator"
> componentType="org.apache.shale.ValidatorScript"/>
>
> <component jsfid="firstNameRegExp" extends="commonsValidator" >
> <attributes>
> <set name="arg" value="#{msg.firstName}"/>
> <set name="server" value="true">
> <set name="client" value="true">
> <set name="type" value="mask">
> <set name="mask" value="#{regex.firstName}">
> </attributes>
> </component>
>
> And, the JSP:
>
> <clay:clay id="regexValidator" jsfid="firstNameRegExp"/>
> Gary
> >
> > david
> > >
> > > Craig
> > >
> > >
> ---------------------------------------------------------------------
> > > 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
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org