You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pedro Santos (JIRA)" <ji...@apache.org> on 2010/08/27 15:58:53 UTC

[jira] Closed: (WICKET-2699) invokePostCallHandlers called twice

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

Pedro Santos closed WICKET-2699.
--------------------------------


Creating the test case I noticed that the stateChangeCallback method at Wicket.Ajax.Request tests the parseResponse property to avoid the described problem.


> invokePostCallHandlers called twice
> -----------------------------------
>
>                 Key: WICKET-2699
>                 URL: https://issues.apache.org/jira/browse/WICKET-2699
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>            Reporter: Pedro Santos
>            Assignee: Igor Vaynberg
>
> Made to retrieve an java script resource from server, processScript method from Wicket.Head.Contributor at wicket-ajax.js pass the onLoad function as callback for an Wicket.Ajax.Request. 
> The onLoad function call: Wicket.Ajax.invokePostCallHandlers, that already are called for every ajax requests. In the end, we got our (framework users) custom preCallHandler called once, and our postCallHandler twice.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.