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 01:58:16 UTC

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

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


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

        

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

Posted by "Eelco Hillenius (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WICKET-36?page=all ]

Eelco Hillenius reassigned WICKET-36:
-------------------------------------

    Assignee: Igor Vaynberg

Author says patched was 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.2, 1.2.3, 2.0
>            Reporter: Jim McLaughlin
>         Assigned To: Igor Vaynberg
>            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

        

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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WICKET-36?page=all ]

Igor Vaynberg resolved WICKET-36.
---------------------------------

    Fix Version/s: 1.3
                   2.0
       Resolution: Fixed

> 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, 2.0
>            Reporter: Jim McLaughlin
>         Assigned To: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.3, 2.0
>
>         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

        

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

Posted by "Jim McLaughlin (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Frank Bille Jensen (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WICKET-36?page=all ]

Frank Bille Jensen updated WICKET-36:
-------------------------------------

    Affects Version/s:     (was: 1.2.4)
                           (was: 1.3)

> 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.2, 1.2.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