Dynamic manubar turns empty on forward()

UI Components for JSF
Post Reply
stevendegroote
Posts: 13
Joined: 01 Jul 2010, 10:48

01 Jul 2010, 10:57

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

stevendegroote
Posts: 13
Joined: 01 Jul 2010, 10:48

09 Jul 2010, 17:46

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jul 2010, 12:55

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.

stevendegroote
Posts: 13
Joined: 01 Jul 2010, 10:48

11 Jul 2010, 11:34

Thank you.

Is there already a release date planned?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

11 Jul 2010, 12:08

19th of July is the target date but we'll see how it goes.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 31 guests