[
https://issues.apache.org/struts/browse/WW-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42576
]
Benjamin McCann commented on WW-2094:
-------------------------------------
I do not think this patch was committed to Subversion. Here's the relevant
code from the change log
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js?p2=%2Fstruts%2Fstruts2%2Ftrunk%2Fplugins%2Fdojo%2Fsrc%2Fmain%2Fresources%2Forg%2Fapache%2Fstruts2%2Fstatic%2Fdojo%2Fstruts_dojo.js.uncompressed.js&p1=%2Fstruts%2Fstruts2%2Ftrunk%2Fplugins%2Fdojo%2Fsrc%2Fmain%2Fresources%2Forg%2Fapache%2Fstruts2%2Fstatic%2Fdojo%2Fstruts_dojo.js.uncompressed.js&r1=590970&r2=590969&view=diff&pathrev=590970
- }else{
- //only call this if setDate was called by means
other than clicking a date
- this._preInitUI(this.value,false,true);
- }
The patch has an else-if in place of the else:
+ }else if(this.value){
> Error DateTimePicker when erase input then click again the calendar
> -------------------------------------------------------------------
>
> Key: WW-2094
> URL: https://issues.apache.org/struts/browse/WW-2094
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.1.0
> Environment: Windows XP, TomCat 5.5, JDK 5
> Reporter: Leneveut Michaƫl
> Assignee: Ted Husted
> Fix For: 2.1.1
>
> Attachments: datetimepicker.patch, dateTimePicker_bug.jpg, Test.war
>
>
> When setting a displayFormat in the <sx:datetimepicker/> tag, there is a bug
> on opening two times the calendar, if we erase the choosed date before the
> second opening.
> Use case :
> The date field is empty.
> We open the calendar and pick a date. The date is well filled in.
> We erase the date in the input field.
> We open again the calendar => All dates are NaN (see screenchot)
> Look at the sample application attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.