The init(Map) method was placed in a separate interface
InitableByConstraintMap.  DefaultValidator and therefore most of the
other supplied validators implement the interface.  If you are extending
and overriding the init(Map) method, you should call super.init(Map).

john mcnally

Ian Lim wrote:
> 
> Hi
> 
> 1) At TDK 2.1, the org.apache.turbine.services.intake.validator.Validator
> interface actually allows init(Map inputParameters) method to be defined.
> 
> This allows us to implement new rules if the existing rules cannot
> satisfy any requirements.
> 
> However from TDK 2.2a onwards, the Validator interface actually
> takes out the init method.
> 
> Is there any particular reason new rules are not being allow to define by a
> Validator.
> 
> 2) We have defined a new rule for the BigDecimal field for eg
> <rule name="notEqualsValue" value="0">Amount cannot not be zero.</rule>
> 
> This allows for "greater than and not equals to" functionality.
> 
> So if the new interface does not all new rules to be inserted.
> What would be the recommended way to add new rules ?
> 
> Regards
> Ian Lim
> Ebyssness
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to