I have added the icepush.jar to my project.
I am expecting the session expired page to show. But it does not comeup.
When I click on any link on the page, in the console I get the javax.faces.application.ViewExpiredException: and not the sessionexpired expection as some of the icefaces documentation mentions.
Any pointer to why the sesison expire page does not show? Could it be beacuse the expection is not what it should be?
Am I missing any config params which would get the right expection and trigger the required session expired page?
I don't even get the default modal popup as the documentaion says, if i remove the sessionExpiredRedirectURI from web.xml
Are you seeing any error in the server logs? Try using a simple HTML page, rather than a JSF XHTML page for the redirect.
Thanks for response Philip. Tried the solution but doe not work. :(
My problem seems to be with the session expiry. As per my understanding Icefaces will redirect to the session expiry page when it gets SessionExpiredException. I instead get ViewExpiredException and not SessionExpiredException. I don't know if Icefaces will do the Redirect with VIewExpiredException (does not do it now) Any pointers to why I might be getting ViewExpiredException instead of SessionExpired?
Thanks for taking this up! Like you pointed out in the previous comment I understand that org.icefaces.sessionExpiredRedirectURI parameter only applies if you are using the compatibility suite of components....So for now I have stopped thinking about the Redirect part. All I am trying now is to get the defeault popup provided by Icefaces. But even that is not happening. I have not tried with server other than weblogic. But I am thinking that this could be something with weblogic. For now we are using a workaround of catching the ViewExpiredException and redirecting.
Are you using the <ice:outputConnectionStatus> component? This component actually overrides both the Session expiry popup and redirect. I had overlooked in my own test case. If you are using it, could you try removing it and retest?