menuitem onClick Dialog

UI Components for JSF
Post Reply
stefan
Posts: 18
Joined: 13 Jun 2010, 23:10

14 Jun 2010, 12:08

Hello,

is it possible to show a dialog out of a <p:menuitem ?
It just doesnt work for me. Heres some code:

Code: Select all

<p:menuButton value="Dialog">
    <p:menuitem value="Show" onclick="test.show();" />
</p:menuButton>
<p:commandButton value="Show" onclick="test.show();" />
<p:dialog widgetVar="test" header="This is a test" />
The commandButton works just fine, the menuitem does not. Anything i have missed? Thanks!

Kind regards,
stefan
JSF2.0 - Netbeans 6.9 - Glassfish V3 - PrimeFaces 2.1RC1-SNAPSHOT

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

14 Jun 2010, 14:01

Yes, I've replicated the issue, it seems onclick is ignored.

Please create a new issue ticket.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests