MenuButton, MenuItem - all items fired

UI Components for JSF
Post Reply
lorenzo
Posts: 6
Joined: 25 May 2010, 18:12

14 Jul 2010, 16:29

Hello

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>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Jul 2010, 18:35

Hi,

Which version are you using?

Also please forum posting guideline;

http://primefaces.prime.com.tr/forum/vi ... f=3&t=1194

lorenzo
Posts: 6
Joined: 25 May 2010, 18:12

15 Jul 2010, 14:02

Sorry, my fault.

Primefaces 2.0.2
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.0.2</version>

JSF 2.0.3
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.3</version>

<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.3</version>

WLS 11g Patchset 2
Oracle Weblogic Server 10.3.3

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jul 2010, 14:04

MenuButton is reimplemented in 2.1-RC1 and I couldn't replicate your issue with the latest version;

http://www.primefaces.org:8080/prime-sh ... button.jsf

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests