In the API of javax.faces.context.Flash (
https://docs.oracle.com/javaee/7/api/javax/faces/context/Flash.html), it says:
First page
<h:button id="nextButton" value="Next (button)" outcome="next.xhtml">
<f:param name="foo" value="bar"/>
</h:button>
Next page
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<f:metadata>
<f:viewParam name="foo" id="foo" value="#{flash.now.foo}" />
</f:metadata>
<head /><body>
foo = #{flash.foo}
</body>
</html>
I think the Next page should have
instead.
When I ran this Next page, it does not print #{flash.foo} on the screen.