Steps to reproduce:
1. Add the following code to the jsf2-portlet in portletViewMode.xhtml:
2. Add the following code to the jsf2-portet in confirmation.xhtml:
3. Deploy the jsf2-portlet and navigate to it.
4. Click the GET link.
If the bug still exists, then the page will display: flash=
If the bug is fixed, the page will display: flash=flash
All of these examples work correctly (in other words, they preserve the flash scope) in a webapp, and flash=flash appears correctly on the page.
Note that both the Ajax and non-Ajax POST-redirect-GET links fail this test as well. The only navigation method that preserves the flash scope correctly is the (Ajax and non-Ajax) POST (page forward) example(s).
Also note the corresponding button components (h:button and h:commandButton) behave the same.