The simple-flow example in jakartaee-tutorial-examples[1] repo does not produce the expected output when run on GlassFish 6.0.0 with Mojarra 3.0.0
https://eclipse-ee4j.github.io/jakartaee-tutorial/jsf-configure004.html#sthref82
In the second flow page, when the Return button it click it gives the following error:
-
Unable to find matching navigation case with from-view-id '/simple-flow/simple-flow-page2.xhtml' for action 'simple-flow-return' with outcome
'simple-flow-return'
Other things, I have tried are:
1.
Change action from “simple-flow-return” to “/simple-flow-return”
This redirects to the Return Page but the flowScope.value is not blank (expectation is flowScope.value should become empty)
From the specification
https://jakarta.ee/specifications/faces/3.0/jakarta-faces-3.0.html#a6236
In the case of a zero length flow definition file, the following also applies:
·
There is one return node in the flow, whose id is the id of the flow with the string “-return”
(without the quotes) appended to it. For example, if flowId is shopping,
the return node id is shopping-return.
(Fails with the above error message)
·
The from-outcome of the return node is a string created with the following formula:
"/" + flowId + "-return".
(Continues the flow and maintains the flowScope.value)
The same code works when deployed with MyFaces-4.0.0.
[1]
https://github.com/hussainnm/jakartaee-tutorial-examples/tree/jakartaee9/web/jsf/simple-flow
Thanks
Hussain
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original
message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law,
this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.