2 Replies Latest reply: Mar 3, 2012 10:06 AM by Ferez RSS

    Clicking itemNode doesn't cause page refresh

    Ferez
      Hi

      Inside menu_root.xml I have added an itemNode beside the autogenerated home itemNode (id="homeMI") like the following:

      <itemNode id="UserPreferencesMI" label="#{user.displayName}"
      action="uishell:UserPreferences" focusViewId="UserPreferences"
      rendered="#{jhsUserRoles['UserPreferences']}"
      visible="#{jhsUser!=null or securityContext.authenticated}"/>

      <itemNode id="homeMI" label="#{nls['HOME_BUTTON_LABEL']}" action="home"
      focusViewId="/Home"/>

      ......

      When I run the application and click the user preferences item the content of the page doesn't get refreshed (it gets refreshed when I press enter in the browser's address bar) but the home button works fine. I think this is a matter of partial page rendering but I don't know where should I put the "UserPreferencesMI" as partialTrigger to make this work. I am really stuck, please help me.

      Thanks,
      Ferez