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.