Re: ajax error handling on server side exception
can we have an option to turn on "catching server side exception by client javascript"? or which part should i look for a "hack" to add my desired function? igor.vaynberg wrote: > > actually i believe this is how it worked original, but then users > wanted any kind of serverside error to go to the error page so we > changed it > > -igor > > On Thu, Apr 10, 2008 at 8:20 PM, ywtsang <[EMAIL PROTECTED]> wrote: >> >> i can sucecssfuly use "getFailureScript" to act against the >> "client-side" >> ajax error, i.e the server is down and ajax request is sent with failure >> >> can we have similar facility for "server-side" exception upon ajax >> request? >> >> e.g. for now, if the server throw exception during "onevent" of an ajax >> request, the response will trigger a redirect to "error page", we want >> to >> re-use something similar to "getFailureScript" to handle the error at >> client >> side >> >> a suggestion that may work is to try-and-catch all exception happened >> during >> onevent of ajax request, and send back a "error-javascript" to the >> ajaxTarget(.appendJavascript); but we think that this is difficult and >> troublesome to refactor all of our ajax code, and >> >> -- >> View this message in context: >> http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16624390.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> 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] > > > -- View this message in context: http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16626772.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ajax error handling on server side exception
actually i believe this is how it worked original, but then users wanted any kind of serverside error to go to the error page so we changed it -igor On Thu, Apr 10, 2008 at 8:20 PM, ywtsang <[EMAIL PROTECTED]> wrote: > > i can sucecssfuly use "getFailureScript" to act against the "client-side" > ajax error, i.e the server is down and ajax request is sent with failure > > can we have similar facility for "server-side" exception upon ajax request? > > e.g. for now, if the server throw exception during "onevent" of an ajax > request, the response will trigger a redirect to "error page", we want to > re-use something similar to "getFailureScript" to handle the error at client > side > > a suggestion that may work is to try-and-catch all exception happened during > onevent of ajax request, and send back a "error-javascript" to the > ajaxTarget(.appendJavascript); but we think that this is difficult and > troublesome to refactor all of our ajax code, and > > -- > View this message in context: > http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16624390.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > 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]
ajax error handling on server side exception
i can sucecssfuly use "getFailureScript" to act against the "client-side" ajax error, i.e the server is down and ajax request is sent with failure can we have similar facility for "server-side" exception upon ajax request? e.g. for now, if the server throw exception during "onevent" of an ajax request, the response will trigger a redirect to "error page", we want to re-use something similar to "getFailureScript" to handle the error at client side a suggestion that may work is to try-and-catch all exception happened during onevent of ajax request, and send back a "error-javascript" to the ajaxTarget(.appendJavascript); but we think that this is difficult and troublesome to refactor all of our ajax code, and -- View this message in context: http://www.nabble.com/ajax-error-handling-on-server-side-exception-tp16624390p16624390.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]