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 8923117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:02:01+00:00 2026-06-15T07:02:01+00:00

I have provided an interface that allows users to create accounts for an application.

  • 0

I have provided an interface that allows users to create accounts for an application. At the end of the process the registration method performs the registration process adds a success message to the page and then navigates the user to a central data table that displays all the system users.

The problem I have is that the success message never gets displayed because of the page redirect. I can’t have a wait() in the method because the JSF message won’t get displayed until the method has completed. Ideally I want the success message to be displayed and then a specified time later the page is redirected.

How can I achieve this?

  • 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-15T07:02:03+00:00Added an answer on June 15, 2026 at 7:02 am

    Keep the message in the flash scope. It’ll survive the redirect.

    context.addMessage(clientId, message);
    externalContext.getFlash().setKeepMessages(true);
    return "users.xhtml?faces-redirect=true";
    

    Note that older Mojarra versions have some peculiar Flash scope related bugs:

    • issue 1755 – Flash scoped messages lives longer than next request – fixed in 2.0.7 / 2.1.4
    • issue 2130 – Flash cookie enables data exploits – fixed in 2.1.24 / 2.2.1
    • issue 2140 – Flash cookie not available when redirected to different path – fixed in 2.1.14 / 2.2.0
    • issue 2906 – Flash cookie uses wrong path for applications on root – fixed in 2.1.24 / 2.2.1
    • issue 2959 – Flash creates sometimes version1 cookie which fail in IE – fixed in 2.1.25 / 2.2.2
    • issue 2977 – Flash causes NPE on stale cookies after a session expire – fixed in 2.1.25 / 2.2.2
    • issue 2866 – Flash cookie not cleared when stale – fixed in 2.1.27 / 2.2.5

    You’d best to upgrade to a minimum of Mojarra 2.1.27 / 2.2.5 in order to ensure that your application is not affected by this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an application that allows users to capture information for entities based
I have a Silveright app that allows users to specify filters on a few
I'm trying to build an application that allows users to drag files from Finder
I need a user interface that allows users to sort a table according to
I have a collection that is binded to my Listview. I have provided options
I am trying to create a directory in Java. I think I have provided
I have been provided an XSD and a sample Xml file that contains the
I have a web application that relies on a MySQL database, for which I
I am currently developing a query builder application, basically, a simple graphical interface that
I have a web application that uses a local SQL Server Express database (a.k.a.

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.