[ 
http://issues.apache.org/jira/browse/TOMAHAWK-261?page=comments#action_12436695 
] 
            
Jeremy Grelle commented on TOMAHAWK-261:
----------------------------------------

I don't mean to nitpick or anything, but it was actually me that provided the 
working patch.  ;)  Thank you for checking it out and applying it, Martin.

Thanks,
Jeremy

> 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

        

Reply via email to