Forums

angle-left Back

jsf nested flow - parent flow bean destroyed

Fabian Bouché, modified 10 Months ago.

jsf nested flow - parent flow bean destroyed

New Member Posts: 8 Join Date: 4/8/16 Recent Posts
Hi!
I wonder if you got the jsf flow demo working when returning to booking/returnFromSurveyFlow.xhtml
Instead of going back to the portletViewMode.xhtml from the survey flow.
When I try to access data from the BookingFlowModelBean inside of returnFromSurveyFlow.xhtml, I get a WELD-001303 error. Adding some debug logs, it seems the booking flow bean gets destroyed alongside with the survey flow bean.
Do you know what could be wrong?
Kyle Joseph Stiemann, modified 10 Months ago.

RE: jsf nested flow - parent flow bean destroyed

LIFERAY STAFF Liferay Master Posts: 659 Join Date: 1/14/13 Recent Posts
Hi Fabian,
What version of Liferay, Liferay Faces, Weld etc. are you using (also what app server)? Are you using the jsf-flows-portlet? If not please post the shortest, simplest code that will reproduce your issue.

- Kyle
Fabian Bouché, modified 10 Months ago.

RE: jsf nested flow - parent flow bean destroyed

New Member Posts: 8 Join Date: 4/8/16 Recent Posts
Hi Kyle,

You'll find on this repo the simplest example illustrating the defect: https://github.com/raoul-imolczek/jsfflow
It's inspired from the jsf-flows-portlet.

When returning from flow B to flow A, both B and A beans get destroyed leading to portlet breaking.

As we are DXP customers, I'll also create a ticket.

Best regards,
Fabian
Kyle Joseph Stiemann, modified 10 Months ago.

RE: jsf nested flow - parent flow bean destroyed

LIFERAY STAFF Liferay Master Posts: 659 Join Date: 1/14/13 Recent Posts
Hi Fabian,
Thanks for the excellent reproducer. Sorry for the delay in my reply, hurricane Irma caused widespread power outages which prevented me from working on this issue. We've reproduced your issue and FACES-3224 was created to track the issue. It turns out that this was a bug in Mojarra (the JSF Reference Implementation). We're closing FACES-3224 as a duplicate of Mojarra #4279, but we'll continue to work on this and send a pull request to fix Mojarra as soon as possible. You can subscribe to the Mojarra issue in order to be updated about the status of the issue.

- Kyle
Kyle Joseph Stiemann, modified 10 Months ago.

RE: jsf nested flow - parent flow bean destroyed

LIFERAY STAFF Liferay Master Posts: 659 Join Date: 1/14/13 Recent Posts
Hi Fabian,
I have submitted a fix for Mojarra #4279. You can track it's progress towards being merged here: https://github.com/vsingleton/mojarra/pull/20.

- Kyle