What are some uses of flash memory in JSF?

I am involved in learning about JSF 2.1, and the "flash" area seems to overlap other areas. It brings any value, or should I ignore it as a modern expression GOTO: Does it have a higher level of use? Is it preferable to use other types of visibility (view, query, etc.)?

+4
source share
1 answer

This is the main use:

  • you submit the form
  • handled by an action method in a managed bean
  • navigation redirection rule is returned
  • you need to show the object obtained in the action method on the results page

If it weren’t for the flash area, you would either have to pass the result in serialized form to the URL, or use redirects rather than redirects. But this is a bad user experience (if he clicks on the update)

+4
source

Source: https://habr.com/ru/post/1332124/


All Articles