I have the following ajax tag in an h:selectBooleanCheckbox:
<f:ajax execute="@this" render=":actions_more_header" listener="#{selectController.actionSelect}"/>
This works fine when I place other tag IDs in for the render attribute, but for p:menuButton I get this console error:
Error: this.getMenu() is null
Source File: https://localhost:8181/oms/primefaces_r ... /button.js
Line: 1 - this.getMenu().subscribe("click",this.handleClick,this,true)};
I simplified the menu button down to this and still get the error.
<h:form id="actions_more_header">
<p:menuButton value="Menu Header">
<p:menuitem value="Menu Item"/>
</p:menuButton>
</h:form>
Any ideas what's going on?
p:menuButton console error this.getMenu() is null
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try p:ajax.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
2.2.M1's p:ajax supports passing an AjaxBehaviorEvent as well as no-argument method. 2.1 doesn't have this.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Cool, 2.2.M1 should be out soon hopefully.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 41 guests