List Info

Thread: AW: Intake localization




AW: Intake localization
country flaguser name
Germany
2007-03-23 05:00:45
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.NumberVal
idator".

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:hoffmannapache.org]
> 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:tvapache.org]
> > 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:
turbine-user-unsubscribejakarta.apache.org
> > For additional commands, e-mail:
turbine-user-helpjakarta.apache.org
> >
> 
> 
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
> For additional commands, e-mail: turbine-user-helpjakarta.apache.org
> 




------------------------------------------------------------
---------
To unsubscribe, e-mail: turbine-user-unsubscribejakarta.apache.org
For additional commands, e-mail: turbine-user-helpjakarta.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )