I have a filter that redirects the user to the login page after 30 minutes on a screen. If the user leaves the system idle on IE8 and this redirect is encountered IE8 presents the user with the following error and the redirect fails.
Message: 'A4J' is undefined
Line: 24
Char: 9
Code: 0
URI: http://cc4srv8vip1/faces/DiscoveryStatus.jsf
Message: 'A4J' is undefined
Line: 92
Char: 1
Code: 0
URI: http://cc4srv8vip1/faces/DiscoveryStatus.jsf
Message: Object expected
Line: 98
Char: 1
Code: 0
URI: http://cc4srv8vip1/faces/DiscoveryStatus.jsf
Is there a generalized way I can catch javascript errors from <a4j:poll>? Can I somehow surround it with try/catch? A4J.AJAX.onError/onExpired doesn't help here because there are javascript level errors.
-Robert
Hi Robert,
You should configure your filter to be called after RichFaces filter, otherwise redirect won't work properly.