I'm experiencing strange behaviour in relation to a menu!
Setting up a menu is rather trivial like:
Code: Select all
<p:menubar>
<p:menuitem value="Logout" action="#{loginBean.logout}" icon="ui-icon-power" ajax="false"/>
</p:menubar>
The method looks like:
Code: Select all
public String logout() {
System.out.println("Logging out!");
if (loggedIn) {
loggedIn = false;
}
return "login";
}
Probably I'm missing something very basic here?!
Regards,
Verhaag, G.C.H.M.