Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-261

Do not use document.write in popup calendars

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.1.1, 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT
    • 1.1.4-SNAPSHOT
    • Calendar, Date
    • None

    Description

      The popup calednar for the date control (and I think the calendar control) uses javascript "document.write" methods. Unfortunately this is not very compatible with AJAX as it is hard to write content to the document after the document is closed.

      Instead, can this be changed to have:

      A) printed hidden component (visibility: hidden; display: none) and just shown when the user clicks the popup button.

      or

      B) Use the DOM JavaScript API to add new elements to the DOM instead of document.write.

      Unless this is changed, these controls cannot be used with AjaxAnywhere and probably not with other AJAX solutions.

      Attachments

        1. HtmlCalendarRenderer.patch
          3 kB
          Jeremy Grelle

        Activity

          People

            mmarinschek Martin Marinschek
            arobinson74 Andrew Robinson
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: