Context menu disappears after an ajax update.

UI Components for JSF
Post Reply
shinzey
Posts: 35
Joined: 02 Aug 2010, 10:45

20 Aug 2010, 08:34

Hi. I'm trying p:contextMenu with the following code:

Code: Select all

<h:form>
    <h:outputText id="random" value="#{contextMenuBean.randomNumber}"
                  style="font-size: 18pt; font-weight: bold; color: #{contextMenuBean.randomColor}"/>
    <p:contextMenu for="random">
        <p:menuitem value="Recompute" update="random"/>
    </p:contextMenu>
</h:form>
When I right click "random" text for the first time, the context menu displays with no problem, but after I click "Recompute" and "random" is updated, the context menu dissapears...

I can reproduce this issue in both Firefox 3.6.8 and IE 8. Is it a bug or did I miss any attribute?

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

20 Aug 2010, 13:43

Avoid updating menu components.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests