2 Replies Latest reply on May 6, 2009 10:57 AM by liuliu

    contextmenu is broken after be rerendered

    liuliu

      hi,

      I have 2 problems about the rich:contextmenu.

      1. contextmenu is broken after be rerendered. here is the code to show the problem, after have selected menuitem aa, contextmenu is broken. rich:componentcontrol could be a workaround.

      <h:graphicImage id="tstimg" value="../../image/notes.gif" >
       <rich:contextMenu id="posomenu" submitMode="ajax">
       <rich:menuItem value="aa" reRender="tstimg"/>
       <rich:menuItem value="bb" />
       </rich:contextMenu>
       </h:graphicImage>
      


      2 if use onclick event to active the contextmenu, u cant click any selectbooleancheckbox. here is the code to show the problem.
      <h:selectBooleanCheckbox/>
      <h:graphicImage id="tstimg" value="../../image/notes.gif" >
       <rich:contextMenu event="onclick" id="posomenu" >
       <rich:menuItem value="aa" />
       <rich:menuItem value="bb" />
       </rich:contextMenu>
       </h:graphicImage>
      

      Can we use the onclick event directly on contextmenu?

      i am useing jsf 1.2, rf 3.3.0
      thanks in advance

      liu