Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:03:14+00:00 2026-06-17T17:03:14+00:00

Model popup is closing while refreshing (after pressing F5) the page please tell me

  • 0

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>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:03:16+00:00Added an answer on June 17, 2026 at 5:03 pm

    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 confirmDialog everytime when you find in HttpServletRequest object 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 Cookie from request I mean something like this:

    Map<String, Object> requestCookieMap =
        FacesContext.getCurrentInstance().getExternalContext().getRequestCookieMap();
    Cookie sessionExpiredCookie = (Cookie) requestCookieMap.get("sessionExpired");
    sessionExpiredCookie.setMaxAge(0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In $(document).ready(), I am producing a model popup to add items on the page
I want to Refresh aspx page after closing a jquery modal dialog on clicking
I am using a popup where the popup is on rich model panel when
I need to create a Model Popup, but my company is using federated css
I've created a modal popup using jQuery (while following this tutorial). It works well,
How to avoid modal popup closing on postback ?.. I have a popup window
I am using AJAX modal popup in my project, but there is problem with
I've got a modal popup (using ModalPopupExtender) working in a kind of master/detail view
I am using jquery modal popup in my application with MVC3 Razor view. Issue
I'm trying to disable the automatic closing of brackets in Eclipse, and while I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.