Here is the last version. I have also written a NumberConverter.
Cheers.
Richard

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Francisco Hernandez
Envoye : jeudi 20 novembre 2003 14:27
A : [EMAIL PROTECTED]
Objet : Re: [OS-webwork] how do i change the error message for badly
inputted fields?


send me your latest version, but the version i found seems to work just 
fine.

Fred Lamuette wrote:
> Maybe the code you mention is a little bit old. Tell me if you want the
> latest version.
> Richard.
> 
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] la part de
> Francisco Hernandez
> Envoye : jeudi 20 novembre 2003 13:20
> A : [EMAIL PROTECTED]
> Objet : Re: [OS-webwork] how do i change the error message for badly
> inputted fields?
> 
> 
> hmm, now that you mention it i belive it was you that posted up some
> code for that on here, going to go find it..
> 
> Fred Lamuette wrote:
> 
>>I had the same problem, I've fixed it by writing my own date converter.
>>Richard.
>>
>>-----Message d'origine-----
>>De : [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] la part de
>>Francisco Hernandez
>>Envoye : jeudi 20 novembre 2003 08:53
>>A : [EMAIL PROTECTED]
>>Objet : Re: [OS-webwork] how do i change the error message for badly
>>inputted fields?
>>
>>
>>the thing is that is that the Date field is optional, so they can choose
>>to fill it out or not, if they leave it empty im getting that field
>>error added and i dont want that.
>>
>>i wonder how ww1 handles this.. maybe it just sets the field to null..?
>>
>>Peter White wrote:
>>
>>
>>>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
>>
>>
>>-------------------------------------------------------
>>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
> 
> 
> 





-------------------------------------------------------
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

Attachment: DateConverter.java
Description: Binary data

Reply via email to