Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1044

<s:selectDate> JavaScript read field for editing

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.2.0.GA
    • Fix Version/s: None
    • Component/s: JSF Integration
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      For now, the JavaScript code of <s:selectDate> doesn't read input field when showing calendar first time using new date (this is my understand of JavaScript code).

      The request is read input field for valid date and set it as default:

      instead:

      var defaultDate = new Date();

      this:

      var defaultDate = __calendarFactory.parseDateValue(getObject(this.name).value);

      if (!defaultDate)
      defaultDate = new Date();

      Or something like.

      I don't know JavaScript, but this work for me.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cavani Ciro Cavani
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: