Page 1 of 1

Dynamic manubar turns empty on forward()

Posted: 01 Jul 2010, 10:57
by stevendegroote
Hi,

we've recently started using the p:menubar dynamically:

Code: Select all

<p:menubar id="menubar" autoSubmenuDisplay="true" model="#{menuBean.model}"/>
The menubean is registered on session scope, and all works fine as long as we navigate in a normal, HTTP GET way by following links.
The problem is when a page follows JSF navigation rules without the "<redirect/>" specification (so using a server forward).

When showing that forwarded page (often an ok message from a submitted form), the menubar has turned empty.
A quick look shows that the getModel() of my bean is not called in these cases.

Is this a bug or can I work around this problem?

Thanks,
Steven

Re: Dynamic manubar turns empty on forward()

Posted: 09 Jul 2010, 17:46
by stevendegroote
Do you guys need more info on this?

I believe that for some reason the component isn't executed in a forward, but in a redirect it works fine.
It is not due to parent components in my xhtml as I removed them as well, but still the menu keeps disappearing, the getModel() isn't called either.

Re: Dynamic manubar turns empty on forward()

Posted: 10 Jul 2010, 12:55
by cagatay.civici
Hi,

Right now there is a check not to populate the menu from the model if it is a postback.

It is not a bug but a limitation, we'll fix this in upcoming version.

Thanks for your feedback.

Re: Dynamic manubar turns empty on forward()

Posted: 11 Jul 2010, 11:34
by stevendegroote
Thank you.

Is there already a release date planned?

Re: Dynamic manubar turns empty on forward()

Posted: 11 Jul 2010, 12:08
by cagatay.civici
19th of July is the target date but we'll see how it goes.