Model popup is closing while refreshing (after pressing F5) the page
please tell me how to display it after refreshing also.
i’m using prime faces
<p:confirmDialog closable="false" id="sessionExpiredDlg" message="Your session expired."
header="#{msgs['confirmDialog.initiatingDestroyProcess.label']}"
severity="alert" widgetVar="sessionExpiredConfirmation" style="z-index: 25000">
<p:commandButton id="confirmRouteDel" value="Ok"
oncomplete="sessionExpiredConfirmation.hide()"
actionListener="#{login.logoutAction}"/>
</p:confirmDialog>
When session expired your have to add some information to response for example a cookie "sessionExpired=true" and sent it to your client with response.
Then you have to render your
confirmDialogeverytime when you find inHttpServletRequestobject that cookie.I am understanding that you expected from user to press confirmation button and it’s a only way to pass through your popup, yes?
So then when user press button just replace cookie from request (for example by changing it’s expiration date to some past value) and with next user request cookie won’t come and your app won’t display that popup.
By replacing
Cookiefrom request I mean something like this: