My Ajax request is firing twice,using rich:menuItem.
Onclick of the menuItem am firing a request in Ajax mode. Am getting the response and am doing some parsing for that response.
For small amount data its rendering on the page but for the large amount of data the request is firing again and its repeating for around 5 times maximum. the page is not at all rendering because its keep on firing the same requests.
Components am using:
rich:menuItem, on click of that am opening a modal panel to show the user that the request is processing. this modal panel am calling on onComplete of the menuItem action and its not at all closing because of this continous firing of request.
please show the code.