Dynamic manubar turns empty on forward()
Posted: 01 Jul 2010, 10:57
Hi,
we've recently started using the p:menubar dynamically:
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
we've recently started using the p:menubar dynamically:
Code: Select all
<p:menubar id="menubar" autoSubmenuDisplay="true" model="#{menuBean.model}"/>
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