> Is nowhere near compelling enough to introduce a new tag. And the  
> benefits
> of introducing yet another XML configuration file that encapsulates the
> validation specifics of individual fields is dubious at best.  
> Personally, I like
> being able to see exactly what the validation entails without having  
> to go
> pawing through a config file, but I know not everyone has that  
> preference.
> 
> 
> david

Clay would work very well to spice up the 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




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to