Yes, this should be handled now...

> -----Original Message-----
> From: Francisco Hernandez [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 22, 2003 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [OS-webwork] how do i change the error message 
> for badly inputted fields?
> 
> 
> I havent had that happen after beta2
> 
> Drew McAuliffe wrote:
> 
> > This raises an issue I've had with the ognl conversion. Is 
> there a way 
> > to make it so that conversion errors don't throw an ugly servlet 
> > error, but rather add an action error to the action? Maybe 
> through an 
> > interceptor? I'm still having problems with unsupplied dates b/c I 
> > haven't heard of the OGNL null value fix coming through 
> yet, and every 
> > time I don't put in a date, I get the standard servlet error, which 
> > goes completely outside of any error handling framework I try. Note 
> > that my action code has error trapping and attempts to show 
> the proper 
> > messages, but the OGNL type conversion errors are being 
> thrown at some 
> > level outside of this, most likely in something like the parameter 
> > interceptor.
> > 
> > Ideas?
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> On Behalf Of 
> > Patrick Lightbody
> > Sent: Friday, November 21, 2003 9:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] how do i change the error message 
> for badly 
> > inputted fields?
> > 
> > The problem is that type conversion is failing when you from "" -> 
> > long, so we're reporting the error and then returning to 
> our modified 
> > Ognl new
> > Long(0) -- AFTER reporting the error. Should we assume that 
> this kind of
> > type conversion is not an error? How do we differentiate 
> from this type
> > conversion error and others (such as a date format)? Should 
> we report type
> > conversion errors at all, or leave that entirely to the 
> validation rules?
> > 
> > -Pat
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> On Behalf Of 
> > Jason Carreira
> > Sent: Thursday, November 20, 2003 7:32 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] how do i change the error message 
> for badly 
> > inputted fields?
> > 
> > Ok... Sounds like we need to revisit the "" type conversion 
> > handling... Is there a Jira for this?
> > 
> > 
> >>-----Original Message-----
> >>From: Francisco Hernandez [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, November 20, 2003 2:53 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: 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

Reply via email to