[ 
https://issues.apache.org/struts/browse/WW-2032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Herak updated WW-2032:
----------------------

    Affects Version/s:     (was: 2.0.8)
                       2.0.11.1
              Summary: Datepicker does not render the date correctly if 
startDate and endDate is provided and  value is not set.  (was: Datepicker does 
not render the date correctly if startDate and endDate if provided and  value 
is not set.)

The bug still exists.

JSP
------

<%@ taglib prefix="s" uri="/struts-tags"%>
<s:head theme="ajax"/>
<s:fielderror/>
<s:form action="Test">
        <s:textfield name="name" label="Name"/>
        <s:datetimepicker name="date" startDate="2007-01-01" 
endDate="2007-02-15" label="date"/>
        <s:submit value="Submit"></s:submit>
</s:form>

The date does not show up after selection 




Also after typing some junk characters in the date field and press submit the 
date field value is set to NaN/NaN/aN.




> Datepicker does not render the date correctly if startDate and endDate is 
> provided and  value is not set.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2032
>                 URL: https://issues.apache.org/struts/browse/WW-2032
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.11.1
>            Reporter: Herak
>         Attachments: NaN.tiff
>
>
> consider the following snippet:
> 1) Snippet :  <s:datetimepicker name="quiz.date" label="Date" 
> startDate="2007-07-01" endDate="2007-09-01"/>
>      Description :This popups the calendar correctly , but on selecting any 
> date the text box associated is not refreshed with the       selected 
> date.This does not happen when value is provided (value="2007-07-07")
>  Also when a non date value is entered , NaN/NaN/aN is displayed on both the 
> text box and the calendar after the form is submitted for validation.

-- 
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