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>
I can reproduce this issue in both Firefox 3.6.8 and IE 8. Is it a bug or did I miss any attribute?