Hi Thomas,

from the intake.dtd

validator:      Name of the class used for validating the value of the
                field.  This is used to have the field validated by a custom
                validator object.  If this is not set, a default validator
                will be used according to the field type.

                The the name of the class is not fully qualified, it will
                be prepended with
org.apache.turbine.services.intake.validator.
                For example: a value of "NumberValidator" will be read as
 
"org.apache.turbine.services.intake.validator.NumberValidator".

All you have to do is implement o.a.t.services.intake.validator.Validator or
extend o.a.t.services.intake.validator.DefaultValidator

Kind regards

Juergen

> -----Ursprüngliche Nachricht-----
> Von: Juergen Hoffmann [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 23. März 2007 10:26
> An: 'Turbine Users List'
> Betreff: AW: Intake localization
> 
> Hi Thomas,
> 
> have you thought about using your own custom validator?
> 
> Kind regards
> 
> Juergen
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Thomas Vandahl [mailto:[EMAIL PROTECTED]
> > Gesendet: Donnerstag, 22. März 2007 20:03
> > An: Turbine Users List
> > Betreff: Intake localization
> >
> > Hi folks,
> >
> > I've got one question about handling locale-specific things in Intake.
> > Obviously, a couple of measures have been taken but the whole thing
> > looks incomplete to me. However, I think that others might have run
> into
> > similar problems like validating money amounts with comma as decimal
> > separator (BigDecimal) or locale-specific date formats.
> >
> > How did you solve this? (Giving up Intake is not an option)
> > Anything helpful is appreciated.
> >
> > Bye, Thomas.
> >
> > ---------------------------------------------------------------------
> > 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]
> 




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

Reply via email to