3 Replies Latest reply on Jun 28, 2010 5:54 AM by Ilya Shaikovsky

    rich:panelMenuItem ajaxSingle problen

    Márton Zsengellér Newbie

      Hey there,


      Ive got a problem with <rich:panelMenuItem>-s ajaxSingle/reRender attributes.

      The easiest way is to show my problem through an example:




      <h:form id="form1">
      <h:inputText id="a" value="#{testBean.a}" />
      <rich:panelMenuItem label="menuItem" reRender="form2"
      ajaxSingle="true" />
      <h:form id="form2">
      <h:inputText id="b" value="#{testBean.b}" required="true" />




      So ive got 2 forms, and an inputText on both (that doesnt matter, i just debug these values to see the refreshing). I set the menuItem-s reRender to form2, and ajaxSingle to 'true'. After that, i press the menu button, but not only the form2:b rerenders, but the form1:a inputext rerenders as well.


      The main problem is when i have a menu panel, and a work panel (and some other panels as well), and i want to refresh only my work panel. Ive tried this little test above and realised that doeasnt work too.


      And btw everythink works fine if i use for example a a4j:button instead of the menuItem, but of course id need the menu to use..

      I dont know the problem, ive tried several things (a4j:support,..) but couldt resolve this problem :/


      could anyone tell me the resolution?

      thank you