You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ota Hauptmann (JIRA)" <ji...@apache.org> on 2012/08/31 12:51:07 UTC

[jira] [Created] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Ota Hauptmann created WICKET-4739:
-------------------------------------

             Summary: Complete handler called before success or failure handler (not after them, as documented)
                 Key: WICKET-4739
                 URL: https://issues.apache.org/jira/browse/WICKET-4739
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.0.0-beta3
            Reporter: Ota Hauptmann


When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.

When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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

[jira] [Commented] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Posted by "Ota Hauptmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447026#comment-13447026 ] 

Ota Hauptmann commented on WICKET-4739:
---------------------------------------

You are right, it is correct in 6.0.0. Sorry for that, but I didn't noticed this version is released (not mentioned on wicket home page). So you can probably close this issue. But...

There is still the problem, which led me to report this issue. This problem is, that if there is an Ajax link which causes a redirect (if there is an exception or redirect to login page), only the complete handler is called. No call to the success handler (which wouldn't make much sense), but also no call to the failure handler. But as I said, the complete handler is called. I understand the documentation in the way, that in all cases either success or failure handler should be called and then the complete handler. But in this situation no success or failure handler is called.

So is this a feature or bug? Is it known? I didn't find such issue, which is open. Should I report it? If it is necessary, I can attach quickstart example of this issue, it is quite trivial to simulate it.

Thank you for your answer.
                
> Complete handler called before success or failure handler (not after them, as documented)
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4739
>                 URL: https://issues.apache.org/jira/browse/WICKET-4739
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Ota Hauptmann
>
> When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.
> When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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

[jira] [Commented] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445832#comment-13445832 ] 

Martin Grigorov commented on WICKET-4739:
-----------------------------------------

This has been improved since beta3.
Please try with 6.0.0.
                
> Complete handler called before success or failure handler (not after them, as documented)
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4739
>                 URL: https://issues.apache.org/jira/browse/WICKET-4739
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Ota Hauptmann
>
> When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.
> When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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

[jira] [Resolved] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4739.
-------------------------------------

    Resolution: Implemented
    
> Complete handler called before success or failure handler (not after them, as documented)
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4739
>                 URL: https://issues.apache.org/jira/browse/WICKET-4739
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Ota Hauptmann
>
> When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.
> When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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

[jira] [Closed] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Posted by "Ota Hauptmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ota Hauptmann closed WICKET-4739.
---------------------------------

    
> Complete handler called before success or failure handler (not after them, as documented)
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4739
>                 URL: https://issues.apache.org/jira/browse/WICKET-4739
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Ota Hauptmann
>
> When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.
> When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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

[jira] [Commented] (WICKET-4739) Complete handler called before success or failure handler (not after them, as documented)

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447027#comment-13447027 ] 

Martin Grigorov commented on WICKET-4739:
-----------------------------------------

Please create a separate issue with a quickstart.
Thanks!
                
> Complete handler called before success or failure handler (not after them, as documented)
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4739
>                 URL: https://issues.apache.org/jira/browse/WICKET-4739
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>            Reporter: Ota Hauptmann
>
> When registering an Ajax call listener, complete handler is called before success and failure handler. In documentation, the order is opposite.
> When registering the global Ajax call listeners, the order is correct (as documented). So both these cases are inconsistent - one follows the documentation, one does not.

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