You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jim McLaughlin (JIRA)" <ji...@apache.org> on 2006/11/05 02:00:17 UTC

[jira] Updated: (WICKET-36) append AjaxTimerBehavior script to component markup

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

Jim McLaughlin updated WICKET-36:
---------------------------------

    Attachment: abstractajaxtimerbehaviorwithtest.patch

patch with fix and test as suggested by Igor

> append AjaxTimerBehavior script to component markup
> ---------------------------------------------------
>
>                 Key: WICKET-36
>                 URL: http://issues.apache.org/jira/browse/WICKET-36
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.2.3, 1.2.2, 1.2.4, 1.3, 2.0
>            Reporter: Jim McLaughlin
>            Priority: Minor
>         Attachments: abstractajaxtimerbehaviorwithtest.patch
>
>
> AbstractAjaxTimerBehavior appends itself to the body onload attribute in renderHead. This does not work when the behavior is added to a component that is rendered by an AjaxRequestTarget. As suggested by Igor, this can be fixed by injecting the script directly into the response after the component has been rendered, in onComponentRendered

-- 
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