>From: Daniel del Río <[EMAIL PROTECTED]> 
>
> Tanks Gary, excellent explanation. 
> 
> I don't know if it is solved in the last version ... anyhow, in the 
> shale-framework-1.0.3-snapshot there is a problem with the 
> commons-validator-1.1.4 library. The shale CommonsValidator class try to 
> invoke the ValidatorResources constructor with a String[] type that don't 
> exists (line 507). I changed to an old commons-validator library and works 
> fine. 
> 

Shale's commons validator only supports commons-validator-1.3.0.jar.   I think 
that myfaces is pulling in the 1.1.4 library.  I think we have the dependencies 
worked out.  The correct version was not inherited in the maven pom structure 
and needed to be explicitly defined for each project.

 

> Thanks. 
> 
> ----- Original Message ----- 
> From: "Gary VanMatre" 
> To: ; "Daniel del Río" 
> Sent: Monday, August 21, 2006 5:43 AM 
> Subject: Re: Adding commonsValidator to a clay component 
> 
> 
> > >From: Daniel del Río 
> >> 
> >> Hello, 
> >> Someone knows if it is possible to add a commonsValidation component in a 
> >> clay 
> >> component? 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> > 
> > You will need to register a validator using the "validator" node. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > If you want to use multiple commonsValidators on a single component, you 
> > will need to use different jsfid's. The jsfid is the "key" for the Set of 
> > validators. 
> > 
> > 
> > Consider: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > There are default alias validators defined. I just realized that these 
> > don't implicitly define the types so you will have to provide the "type". 
> > 
> > s:commonsValidatorRequired, s:commonsValidatorMaxlength, 
> > s:commonsValidatorMinlength, s:commonsValidatorMask, 
> > s:commonsValidatorByte, s:commonsValidatorShort, 
> > s:commonsValidatorInteger, s:commonsValidatorLong, 
> > s:commonsValidatorFloat, s:commonsValidatorDouble, s:commonsValidatorDate, 
> > s:commonsValidatorIntRange, s:commonsValidatorFloatRange, 
> > s:commonsValidatorDoubleRange, s:commonsValidatorCreditCard, 
> > s:commonsValidatorEmail, s:commonsValidatorUrl 
> > 
> >> Thanks in advance. 
> >> drh. 
> >> 
> > 
> > Gary 
> 
> 

Reply via email to