2 Replies Latest reply on Jul 22, 2010 6:25 AM by ravi.kuchika

    a4j:queue on rich:menuitem

    ravi.kuchika

      Hello All,

       

      I  am trying to add a4j:queue on rich:menuitem. My menuitem is populated from  backend. menuItem has menu1,menu2,menu3 and each menu item is being  associate with an action and inturn seperate page. My requirement is..  if user click on menu1,menu2,menu3 conitnuously only menu3 should get  loaded menu1 and menu2 should not load.I place a4j:queue as

       

       

      <a4j:queue ignoreDupResponses="true" onbeforedomupdate="alert('on before dom update');" />

       

      and my menuitem is:

       

       

      <

       

      rich:menuItem binding="#{menuItem.htmlMenuItem}"  submitMode="ajax"></rich:menuItem>

       

       

      but menu1,menu2 and after that menu3 is being  loaded. From the debuggers i got that for every menu click its invoking  the action and returning to the respective page.

       

      Can  any one suggest me whats wrong i am doing??

       

      Thanks  in advance

        • 1. Re: a4j:queue on rich:menuitem
          ilya_shaikovsky

          I didn't got how the queue related to the case and in general case details. Please clarify more on code involved.

          • 2. Re: a4j:queue on rich:menuitem
            ravi.kuchika

            Hi Ilya

             

            I just have a menuItem which is prepared in the backend through backend. My requirement is when user select the menu items continuously like menu1,menu2, and menu 3 i want to show the response only for menu3 not for menu1 and menu2. For this i am trying to put all requests in queue and making ignoredupresponses to true so that it accepts the latest selection i.e menu3, could you please suggest any other way rather using queue??

             

            my code is as follows

             

            <rich:menuItem binding="#{menuItem.htmlMenuItem}" submitMode="ajax"/>

             

            and i placed the queue inside form as

             

            <a4j:queue ignoreDupResponses="true" onbeforedomupdate="alert('on before dom  update');" />

             

             

            Thanks in advance.