p:menu on panel

UI Components for JSF
Post Reply
lanpar
Posts: 32
Joined: 12 Oct 2010, 21:24

23 May 2011, 15:55

in my panel i have

<f:facet name="options">

<p:menu>
<p:menuitem value="Save" actionListener="#{buttonBean.save}" update="messages" icon="ui-icon ui-icon-disk"/>
</p:menu>
</f:facet>

now since i only have one menu item , i would rather just click it and perform my action,
unfortunately panel only accepts menu....any workaround ?

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

23 May 2011, 16:28

That's not how it works so no workaround.

lanpar
Posts: 32
Joined: 12 Oct 2010, 21:24

23 May 2011, 17:56

thanks appreciate it :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests