You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Victor Neo (JIRA)" <ji...@apache.org> on 2007/06/15 08:25:26 UTC

[jira] Created: (WW-1997) DateTimePicker won't work if Year is 0000

DateTimePicker won't work if Year is 0000
-----------------------------------------

                 Key: WW-1997
                 URL: https://issues.apache.org/struts/browse/WW-1997
             Project: Struts 2
          Issue Type: Bug
          Components: Misc
    Affects Versions: 2.0.8
         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0

Browser is Firefox 2.0.0.4.
            Reporter: Victor Neo


DateTimePicker will not work if the user manually specifies the Year as 0000.

Below is my <s:form> containing the DateTimePicker tag:

<s:form method="post">
<s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
<s:submit/>
</s:form>


Reproducing the bug:

1. Select any date from the DateTimePicker calendar.
2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
3. Press submit.
4. An error would be caught, will display the same page again.
5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Updated: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted updated WW-1997:
---------------------------

    Fix Version/s: Future

Setting Fix Version to "future" for issues without a set fix version. 


> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>             Fix For: Future
>
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Closed: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Wes Wannemacher (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes Wannemacher closed WW-1997.
-------------------------------

    Resolution: Won't Fix

We are moving away from the Dojo tags in Struts, so this issue is not likely to get fixed without a patch. If you can provide a patch, feel free to reopen and attach a fix. 

> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>             Fix For: Future
>
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Commented: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Rajeev kumar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44522#action_44522 ] 

Rajeev kumar commented on WW-1997:
----------------------------------

If we will not uses 'displayFormat="dd/MM/yyyy" ', then 0000 issue is resolved. But selecting multiple dates issue with "NaN/NaN/NaN" have still problem.
I am using struts 2.0.11.1 version. 
Could you also provide any patch for struts 2.0.11.1 version for above mentioned issue.


> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>             Fix For: Future
>
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Commented: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41763 ] 

James Holmes commented on WW-1997:
----------------------------------

This is really an issue with the Dojo DatePicker widget and not a Struts 2 issue. Note sure how we should handle this. Perhaps open a ticket over at the Dojo project if that has not already been resolved in a later version of Dojo. Ultimately we'd have to update the Dojo code included with Struts 2 to pick up any fixes.

> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>             Fix For: Future
>
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Updated: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Victor Neo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Victor Neo updated WW-1997:
---------------------------

    Affects Version/s:     (was: 2.0.8)
                       2.0.9

> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Commented: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Victor Neo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41527 ] 

Victor Neo commented on WW-1997:
--------------------------------

DateTimePicker will also not work if i enter alphabets directly into the field with or without using the Javascript Calendar provided.

Input: AA/PP/MMMM

After submitting the form, clicking on the Javascript Calendar will show NaN/NaN/NaN for all clickable dates inside.

> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Misc
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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


[jira] Commented: (WW-1997) DateTimePicker won't work if Year is 0000

Posted by "Kate (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43365#action_43365 ] 

Kate commented on WW-1997:
--------------------------

There is another similar problem with the date picker.  

1. Hold down a mouse button and select multiple dates (holding down the mouse button over multiple dates and releasing once multiple dates are selected).
2. "NaN/NaN/NaN" shows up in the text field 

> DateTimePicker won't work if Year is 0000
> -----------------------------------------
>
>                 Key: WW-1997
>                 URL: https://issues.apache.org/struts/browse/WW-1997
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.9
>         Environment: Windows XP, Tomcat 5.5, JDK 6 compiling at 5.0
> Browser is Firefox 2.0.0.4.
>            Reporter: Victor Neo
>             Fix For: Future
>
>
> DateTimePicker will not work if the user manually specifies the Year as 0000.
> Below is my <s:form> containing the DateTimePicker tag:
> <s:form method="post">
> <s:datetimepicker name="date" label="Delivery Date" displayFormat="dd/MM/yyyy" />
> <s:submit/>
> </s:form>
> Reproducing the bug:
> 1. Select any date from the DateTimePicker calendar.
> 2. Manually change the YYYY Year portion to 0000 (4 Zeroes) in the textfield.
> 3. Press submit.
> 4. An error would be caught, will display the same page again.
> 5. If I select any date in the DateTimePicker, it will not display in the textfield.

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