You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2006/09/21 23:42:24 UTC

[jira] Updated: (TOMAHAWK-261) Do not use document.write in popup calendars

     [ http://issues.apache.org/jira/browse/TOMAHAWK-261?page=all ]

Martin Marinschek updated TOMAHAWK-261:
---------------------------------------

           Status: Resolved  (was: Patch Available)
    Fix Version/s: 1.1.4-SNAPSHOT
       Resolution: Fixed

Thanks to Andrew Robinson for this fix.

regards,

Martin

> Do not use document.write in popup calendars
> --------------------------------------------
>
>                 Key: TOMAHAWK-261
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-261
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: Calendar, Date
>    Affects Versions: 1.1.1, 1.1.2-SNAPSHOT, 1.1.3-SNAPSHOT
>            Reporter: Andrew Robinson
>         Assigned To: Martin Marinschek
>            Priority: Blocker
>             Fix For: 1.1.4-SNAPSHOT
>
>         Attachments: HtmlCalendarRenderer.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira