I put a Log-statement in the method:
protected void doAssertValidity(String plz) throws ValidationException {
Log.info("plz wird validiert");
...
but the message doesn't appear in the log.
Perhaps the difference is that the validator-attribute doesn't accept fully
qualified classnames. (You used the simple classname of a class in the
standard validator-package.)
I will check out turbine HEAD and replace the intake-classes and see if it
makes a difference.
> -----Ursprungliche Nachricht-----
> Von: Quinton McCombs [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 21. Januar 2003 20:34
> An: Turbine Developers List
> Betreff: RE: [SOURCE] Issue #TTWS37 - Intake: validator-attribute not
> processed
>
>
> I simply can not recreate this problem that you are seeing. I am using
> the latest CVS HEAD version though. Perhaps that is the difference.
>
> Here is what I did to test....
>
> I created a field like this:
> <field name="Email" key="email" type="String"
> validator="BooleanValidator" />
>
> This should give me a String field which would normally use the
> DefaultValidator. This definition will force the BooleanValidator.
>
> I put in a non-boolean value for the field and submitted the form to my
> action. When group.isAllValid() was called, the result was false. The
> form was redisplayed. $group.Email.Value displayed exactly what I
> entered. The error message for the field was also set properly.
>
> I tried again with a real boolean and everything worked as expected.
>
>
> I think that my use of BooleanValidator was a good test for this because
> it is a subclass of DefaultValidator just like your validators. Try
> using the BooleanValidator as a custom validator in your environment and
> see what happens.
>
> Please let me know what the results are.
>
> > -----Original Message-----
> > From: Marc Lustig [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 11:04 AM
> > To: Marc Lustig
> > Cc: [EMAIL PROTECTED]
> > Subject: [SOURCE] Issue #TTWS37 - Intake: validator-attribute
> > not processed
> >
> >
> > You can view the issue detail at the following URL:
> > <http://scarab.werken.com/scarab/issues/id/TTWS37>
> >
> > Type : Defect
> > Issue Id : TTWS37
> > Reported by: Marc Lustig
> > axismundi - ([EMAIL PROTECTED])
> >
> > Details:
> >
> > Platform: PC
> > Operating system: windows 2000
> > Summary: Intake: validator-attribute not processed
> > Description: <field name="xx" key="xx" type="xx"
> > validator="de.geoconnect.audiotex.validation.MyValidator">
> > --> on form-validation MyValidator is not being processed
> >
> > Status: New
> > Priority: High
> > Severity: Blocker
> > Functional area: UI
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:turbine-dev-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>