Will the keepMessages property remain true in the application?
No, this only applies to the current βflash sessionβ. That is, just the current HTTP request. It is cleared in the next request in the same session.
See also the 'javadoc class :
The concept of Flash is taken from Ruby on Rails and provides a way to transfer temporary objects between user representations generated by the face life cycle. As with Rails, everything that fits into flash memory will be displayed in the next view, detected by the same user session, and then cleared .
And the javadoc method :
setKeepMessages
...
Options:
newValue - the new value for this property in this session
It should be noted, however, that Mojarra had several serious problems related to the scale of the outbreak. For instance. the message will not appear when going to another path. Or the message will reappear in another window when you manage to go to the same path. Such things. However, all these problems have already been fixed since Mojarra 2.1.18. There was only a security resource left, see also issue 2126 , found and reported by my colleague Arjan Tijms. Until you put sensitive information in flash messages, for example, credit card numbers, it is safe.
source share