You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Andrea Del Bene (JIRA)" <ji...@apache.org> on 2013/05/07 11:21:16 UTC

[jira] [Updated] (WICKET-5181) Problem with OnEventHeaderItem and Wicket.Event.add

     [ https://issues.apache.org/jira/browse/WICKET-5181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrea Del Bene updated WICKET-5181:
------------------------------------

    Attachment: Quickstart.zip
    
> Problem with OnEventHeaderItem and Wicket.Event.add
> ---------------------------------------------------
>
>                 Key: WICKET-5181
>                 URL: https://issues.apache.org/jira/browse/WICKET-5181
>             Project: Wicket
>          Issue Type: Bug
>            Reporter: Andrea Del Bene
>         Attachments: Quickstart.zip, WICKET-5181.patch
>
>
> OnEventHeaderItem uses function Wicket.Event.add from wicket-event-jquery.js to bind a script to specific event fired for a given DOM element.
> The function allows to specify the DOM element using its id. In this case the element is retrieved with standard function document.getElementById. 
> However, this scenario fails when we apply it through OnEventHeaderItem because Wicket.Event.add is invoked before the DOM is ready (see attached quickstart). Therefore, we should modify the function to check for DOM-ready state (see attached patch).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira