Session Timeout in Modal Window
I am opening a modal window from a commandLink:
<af:commandLink immediate="true" partialSubmit="true" binding="#{projectPlan.cl3}"
text="#{projectPlan.wbsAttachmentLinkText}" id="cl3"
action="dialog:fileattach" windowEmbedStyle="inlineDocument"
windowModalityType="applicationModal" useWindow="true"
windowHeight="444" windowWidth="666"
shortDesc="#{projectPlan.wbsDesc}"
launchListener="#{projectPlan.passComponentIDToDialog}"
returnListener="#{projectPlan.returnFromAttachmentDialog}"/>
When the session times out while on that modal window, there is a Page Expired dialog that appears on the parent page as well as this window that is opened in modal mode (the child window). When I click the OK button on the Page Expired dialog on the child window, I get another dialog from Windows Internet Explorer that says "Are you sure you want to navigate away from this page? There are one or more dependent dialogs open. Navigation away from this page will invalidate any open dialogs. Press OK to continue, or Cancel to stay on the current page."
When I press OK to continue, it tries to reload the parent page, and I would prefer it redirect to the "session has timed out" page as I have directed it to do in the web.xml file via the ApplicationSessionExpiryFilter filter.
How come it doesn't do this? Instead it tries to reload the parent page and errors out due to not finding certain session values it's looking for.
Thanks!