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:17:16 UTC

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

Andrea Del Bene created WICKET-5181:
---------------------------------------

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


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