I have a menubutton with 3 menuitem. Ajax=false.
When I click the first button, everything works fine. When I click the next button, the first and the seconf action is invoked. And if I click the third button all three methods are invoked!
Is there a way to correct this behavior? I only want the action invoked for the clicked menuitem. But I don't want to change ajax=false.
Here is my code:
Code: Select all
<p:menuButton value="#{labels['nus.download']}">
<p:menuitem value="#{labels['nus.download.csv']}" action="#{nusTabellenControl.downloadCSV}" ajax="false" />
<p:menuitem value="#{labels['nus.download.excel']}" action="#{nusTabellenControl.downloadXLS}" ajax="false" />
<p:menuitem value="#{labels['nus.download.xml']}" action="#{nusTabellenControl.downloadXML}" ajax="false" />
</p:menuButton>