Foren

jsf nested flow - parent flow bean destroyed

thumbnail
Fabian Bouché, geändert vor 6 Jahren.

jsf nested flow - parent flow bean destroyed

New Member Beiträge: 12 Beitrittsdatum: 08.04.16 Neueste Beiträge
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?
thumbnail
Kyle Joseph Stiemann, geändert vor 6 Jahren.

RE: jsf nested flow - parent flow bean destroyed

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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
thumbnail
Fabian Bouché, geändert vor 6 Jahren.

RE: jsf nested flow - parent flow bean destroyed

New Member Beiträge: 12 Beitrittsdatum: 08.04.16 Neueste Beiträge
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
thumbnail
Kyle Joseph Stiemann, geändert vor 6 Jahren.

RE: jsf nested flow - parent flow bean destroyed

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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
thumbnail
Kyle Joseph Stiemann, geändert vor 6 Jahren.

RE: jsf nested flow - parent flow bean destroyed

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
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