Struts 2
  1. Struts 2
  2. WW-2032

Datepicker does not render the date correctly if startDate and endDate is provided and value is not set.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.11.1
    • Fix Version/s: Future
    • Component/s: Plugin - Dojo Tags
    • Labels:
      None
    • Flags:
      Important

      Description

      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.

        Activity

        Hide
        Herak added a comment -

        NaN on datepicker

        Show
        Herak added a comment - NaN on datepicker
        Hide
        Ted Husted added a comment -

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

        Show
        Ted Husted added a comment - Setting Fix Version to "future" for issues without a set fix version.
        Hide
        Don Brown added a comment -

        The date picker tag has undergone a number of changes since, and I can't replicate this issue. Please reopen if you find it still to be a problem.

        Show
        Don Brown added a comment - The date picker tag has undergone a number of changes since, and I can't replicate this issue. Please reopen if you find it still to be a problem.
        Hide
        Herak added a comment -

        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.

        Show
        Herak added a comment - 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.
        Hide
        musachy added a comment -

        Another Dojo bug, setting fox version to "Future" until a decision is taken on what to do with the ajax tags

        Show
        musachy added a comment - Another Dojo bug, setting fox version to "Future" until a decision is taken on what to do with the ajax tags
        Hide
        Wes Wannemacher added a comment -

        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.

        Show
        Wes Wannemacher added a comment - 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.

          People

          • Assignee:
            Unassigned
            Reporter:
            Herak
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development