[ 
https://issues.apache.org/struts/browse/WW-2540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43854#action_43854
 ] 

Juho-Pekka Rosti commented on WW-2540:
--------------------------------------

Same issue using Struts 2.0.9

On Firefox with Firebug you get:

Error: TypeError: dateObject.getDate is not a function
throw _13||Error(_12);
dojo.js (line 94)

After this the field submitted is empty, so in the unfortunate case where an 
empty value is acceptable, there's no way catching this to request proper input 
from the user.


> datetimepicker cause a javascript error if entered some non-date chars then 
> lose focus BEFORE choose a date
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2540
>                 URL: https://issues.apache.org/struts/browse/WW-2540
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11
>         Environment: XP SP2 ,IE 7.0
>            Reporter: andvar woo
>            Priority: Minor
>         Attachments: screenshot-1.jpg
>
>
> I use this tag and find a bug for it.
> when you enter some non-date format characters such as 'abvc' BEFORE choose a 
> date,then kill focus for the datatimepicter,you get a javascript error :
> -------------------------------------------------------------------
> Line:4872
> Char:1
> Code:0
> Error:[object Error]
> site:http://localhost/struts2-showcase-2.0.11/tags/ui/datepicker/
> ------------------------------------------------------------------
> you can try the examples offered with the struts-2.0.11-all.zip.
> http://localhost/struts2-showcase-2.0.11/tags/ui/datepicker/
> the value for the "US format" is empty,then enter some non-date format 
> charcters BEFORE choose a date,then kill focus

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to