you can register general failure handlers in your page:
easiest way is to simply have function wicketGlobalFailureHandler() {
... } defined somewhere, a better way is to define it like this:
Wicket.Ajax.registerFailureHandler(function() { ...})
-igor
On Mon, Mar 31, 2008 at 10:15 AM, Markus Strickler <[EMAIL PROTECTED]> wrote:
> Hi-
>
> we have some problems with a page that uses AjaxSubmitButton. Once the
> session
> has expired clicking the button just does nothing.
> AJAX debug gives the follwing output:
>
> INFO:
> INFO: Initiating Ajax POST request on
>
> /app/?wicket:interface=:6:textMessageEditorForm:save:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true&random=0.15552442536196975
> INFO: Invoking pre-call handler(s)...
> INFO: Received ajax response (0 characters)
> INFO:
> ERROR: Error while parsing response: Could not find root <ajax-response>
> element
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
>
> Is there a way to display some enduser error message in this case or just
> redirect to the Page Expired error page?
>
> Thanks for any help,
>
> -markus
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]