0 Replies Latest reply on Feb 6, 2012 5:23 AM by Nikolai Alexeev

    Richfaces context menu binding doesn't work

    Nikolai Alexeev Newbie

      I try to draw dynamic complex context menu, which is different for different items and can include submenus (rich:menuGroup) which can include submenus too. I don't know how to implement it using jsf tags so i've decided to make menu in bean and bind it to corresponding element on page. But there i've faced some strange problem: menu doesn't want to rerender. It is rendered only once when the page is loaded, when i try to rerender it or wrap it in a4j:output panel and rerender this panel nothing happens, my MbContextMenu.getPopupMenu() isn't called. Why?

      This is my menu:

           <h:form id="operEntriesCtxForm">
              <rich:contextMenu id="operEntriesCtxMenu" binding="#{MbContextMenu.popupMenu}"
                      disableDefaultMenu="true" submitMode="ajax" attached="false"

      This is my table which triggers menu rerendering:

           <rich:extendedDataTable id="operEntriesTable" 
                  onRowMouseUp="if (showMenu(this, true)) Richfaces.showModalPanel('operEntriesCtxForm:operEntriesCtxMenu', {}, event);"
              <a4j:support event="onselectionchange" requestDelay="500"

      P.S. jsf 1.2, richfaces 3.3.3