<p:menuitem> fails to invoke action method when ajax="false"

UI Components for JSF
Post Reply
User avatar
jim@jimtough.com
Posts: 142
Joined: 03 Jun 2011, 18:06
Location: Canada

17 Nov 2011, 18:33

Some odd behavior with 3.0-M4:

I have a toolbar on my page containing a <p:menuButton> with a number of <p:menuitem> children. Each <p:menuitem> triggers an action method on a managed bean and are using ajax="false" so a full page refresh will happen after the action method is invoked. This all worked fine in 3.0-M3 builds.

After updating to 3.0-M4 the <p:menuitem> fails to invoke the action method at all. If I click a <p:menuitem> the full page refresh happens but no action is executed. It took me some time to identify the problem, but I realized that if I change to ajax="true" and update=":formEnclosingAllPageContent" then the action method does get executed.

Has anyone else seen this in their webapp? Am I doing something wrong in non-Ajax mode?
PF 3.0,
Mojarra 2.1.4,
Tomcat 7.0.14,
Eclipse Indigo,
IE 7, Chrome

Image
http://stackoverflow.com/users/346112/jim-tough

Would rather be a Decepticon...

bpap
Posts: 34
Joined: 30 Sep 2011, 16:15

18 Nov 2011, 01:15

It's working fine here with the released 3.0.M4 :/
Apache Tomcat 7.0.21 / JSF 2.1.2 / PM 3.0.M4-SNAPSHOT

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 52 guests