clearMenuState for Ultima theme

Post Reply
Posts: 3
Joined: 05 Feb 2016, 12:33

21 Apr 2017, 13:52

it is stated in Ultima documentation that State is saved via a cookie and to remove it define a widgetVar to the menu and call PF('yourwidgetvar').clearMenuState().

how would i call this PF function?
Currently i have tried two following things:
1. at the time of login:

Code: Select all

 <p:commandButton action="#{loginView.login}" value="Sign In" icon="ui-icon-person" oncomplete="PF('mainmenu').clearMenuState()" update="msgs"/>
2.Or in login function:

Code: Select all

 RequestContext requestContext = RequestContext.getCurrentInstance();
for xhtml it looks following:

Code: Select all

  <h:form id="menuform"> 
        <div class="layout-menu #{guestPreferences.menuClass}">
            <div class="nano">
                <div class="nano-content menu-scroll-content">
                	<pu:menu widgetVar="mainmenu">
thanks you,

User avatar
Posts: 2821
Joined: 29 Jun 2013, 12:38

25 Apr 2017, 08:13


You can try to call PF('yourwidgetvar').clearMenuState() after clicking logout button/link;

in topbar.xhtml

Code: Select all

<li role="menuitem">
    <a href="#" jsf:action="#{bean.logout}">
        <i class="material-icons">&#xE8AC;</i>
More information is at; ... eat-sheet/ ... 27136.html

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest