Francisco,
I see where you're coming from now that I've tried to validate a field with
a different validator than "requiredstring". I tried using "required" on a
field and I'm getting the same error as you, it completely ignores my
message key.
-Peter
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter White
> Sent: Wednesday, November 19, 2003 10:54 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] how do i change the error message
> for badly inputted fields?
>
> Francisco,
>
> Have you tried something like this from the Wiki site?
>
> In ValidatedAction-validation.xml:
> <validators>
> <field name="date">
> <field-validator type="date">
> <param name="min">01/01/1970</param>
> <message key="invalid.date">Invalid Date!</message>
> </field-validator>
> </field>
> </validators>
>
> In ValidatedAction.properties:
> invalid.date=You must enter a date after ${min}.
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> On Behalf Of
> > Francisco Hernandez
> > Sent: Wednesday, November 19, 2003 10:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: [OS-webwork] how do i change the error message for badly
> > inputted fields?
> >
> > i have a field of type Date, if i put in junk as the input ill get
> > this
> > message:
> >
> > Invalid field value for field "user.dob".
> >
> > how can i change this message to something more friendly
> like "Please
> > input a value for Date of Birth, example: 03/18/1980)"
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive? Does it help you
> > create better code? SHARE THE LOVE, and help us help YOU! Click
> > Here: http://sourceforge.net/donate/
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us
> help YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork