Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fabian Bouché
jsf nested flow - parent flow bean destroyed
September 7, 2017 11:21 AM
Answer

Fabian Bouché

Rank: New Member

Posts: 7

Join Date: April 8, 2016

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
RE: jsf nested flow - parent flow bean destroyed
September 7, 2017 11:39 AM
Answer

Kyle Joseph Stiemann

LIFERAY STAFF

Rank: Liferay Master

Posts: 561

Join Date: January 14, 2013

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é
RE: jsf nested flow - parent flow bean destroyed
September 8, 2017 2:27 AM
Answer

Fabian Bouché

Rank: New Member

Posts: 7

Join Date: April 8, 2016

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
RE: jsf nested flow - parent flow bean destroyed
September 13, 2017 3:25 PM
Answer

Kyle Joseph Stiemann

LIFERAY STAFF

Rank: Liferay Master

Posts: 561

Join Date: January 14, 2013

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
RE: jsf nested flow - parent flow bean destroyed
September 15, 2017 1:45 PM
Answer

Kyle Joseph Stiemann

LIFERAY STAFF

Rank: Liferay Master

Posts: 561

Join Date: January 14, 2013

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