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

  • Home
  • SEARCH
  • 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 9178433
In Process

The Archive Base Latest Questions

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

I have one page where I add new item when I save data I

  • 0

I have one page where I add new item when I save data I go to other page where I want to see message that “Data was saved successful”. I read that message belong to request scope that’s why I am using the flash scope.

context.addMessage("calendarGameForm:growl", new FacesMessage("Data was saved successful");
context.getExternalContext().getFlash().setKeepMessages(true);
return outcome;

This is invoked by a save button on the first page addSeason.xhtml.

<p:commandButton id="save" action="#{controller.add}"
                 value="#{msg.save}" ajax="true"
                 type="submit" update="@form"/>

The navigation rule is definied as follows.

<navigation-rule>
    <from-view-id>/competitions/addSeason.xhtml</from-view-id>
    <navigation-case>
        <from-outcome>success</from-outcome>
        <to-view-id>/competitions/calendarGame.xhtml</to-view-id>
        <redirect/>
    </navigation-case>
    <navigation-case>
        <from-outcome>fail</from-outcome>
        <to-view-id>/competitions/calendarGame.xhtml</to-view-id>
        <redirect/>
    </navigation-case>
</navigation-rule>

But in the target page calendarGame.xhtml I don’t get my message.

<p:growl id="growl" globalOnly="true" sticky="true"/>

I am also getting this warning in the server log.

WARNING [javax.enterprise.resource.webcontainer.jsf.flash] (ajp–127.0.0.1-8009-1) JSF1095: The response was already committed by the time we tried to set the outgoing cookie for the flash. Any values stored to the flash will not be available on the next request.

How I can solve my problem?

  • 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:33:02+00:00Added an answer on June 17, 2026 at 5:33 pm

    This problem is two-fold.

    As to the first problem, I gather that you’re adding the faces message in an action method and not during prerender view, right? You’ve there a return outcome, so it’d make sense that it’s inside a real action method. In that case, the JSF1095 message is caused by an Ajax-encoding related bug in Mojarra and fixed in 2.1.11. Mojarra have had a lot of Flash scope related problems of which the last one is fixed in 2.1.14. I recommend to update Mojarra to at least that version. It’s currently already at 2.1.17.

    As to the second problem, a <p:growl globalOnly="true"> shows only messages with a null client ID. Fix your addMessage() call to pass null instead.

    context.addMessage(null, message);
    

    If you were actually adding the faces message during prerender event before a navigation, then the problem would have a different cause and would require a different solution. See among others this answer: Mojarra 2.1.14 flash scope messages and redirect to different path.

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

Sidebar

Related Questions

I have a one master Page. I want to add 3 Menu items to
I have several forms(user can add new form dynamically) in one page, they're all
I have a page that contains two links with the same text Add new
I have pdf document, for example 25 pages. How to add one blank page
I have one page website only using HTML, CSS and JavaScript. I want to
i am porting over a website from asp. i have one page that i
I have an existing event heavy page that I am trying to add typeahead
I have one grid view which i want to add in footer of listview
I have one Page which is displaying details of some Client. I am using
I have one page with a Silverlight object on it, and many times when

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.