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

Martin Grigorov resolved WICKET-1557.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0
         Assignee: Martin Grigorov

Wicket 6.0 uses jQuery which calls the failure handler when the server is down.
Status is 0 and the error parameter value is 'error'. Not very informative but 
still ...
                
> Handling lost connection from AJAX button
> -----------------------------------------
>
>                 Key: WICKET-1557
>                 URL: https://issues.apache.org/jira/browse/WICKET-1557
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.3
>         Environment: Firefox 2.0.0.12 on Ubuntu 7.10
>            Reporter: Federico Fanton
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.0.0
>
>
> Is there a way to handle a "connection lost" problem from AJAX buttons?
> Right now when I click on an AJAX button and the server is down, nothing 
> happens. I'd like to show an alert instead..
> I tried registering a javascript handler with registerFailureHandler, but it 
> doesn't fire _only_ on connection lost, I receive alerts on other Ajax errors 
> too.. Inside "Wicket AJAX debug" I see NS_ERROR_NOT_AVAILABLE errors, even 
> with the server up.. Am I doing something wrong?
> Many thanks for your time!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to