[ http://issues.apache.org/jira/browse/MYFACES-775?page=all ]
Will Norris updated MYFACES-775:
--------------------------------
Attachment: HtmlInputDate.diff
The problem is a NumberFormatException that gets thrown by Integer.parse and is
never caught. HtmlInputDate$UserData.parse should be catching this and
throwing a new ParseException, which the attached diff does.
I'm not completely sure what the offset should be for the ParseException, since
it doesn't exactly apply in this case, so I just put 0. Perhaps it should be
one of the static ints in Calendar (Calendar.YEAR, Calendar.MONTH, etc) to
designate which field caused the exception. However that would require a
separate try/catch block for each item (total of 8 I think) -- not necessarily
a bad thing if you're actually going to do something with it on the other side,
but probably superfluous for the time being.
> Exception in inputDate
> ----------------------
>
> Key: MYFACES-775
> URL: http://issues.apache.org/jira/browse/MYFACES-775
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.1
> Environment: myfaces-api.jar, myfaces-impl.jar, tomahawk.jar
> Reporter: Kristina Feldmann
> Attachments: HtmlInputDate.diff
>
> There is a NumberFormatException if a InputField is empty.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira