在Primefaces 5.1中我只想p:megamenu点击打开菜单,否则p:commandButton按下打开它?
<p:megaMenu id="navigationMegaMenuId"
styleClass="navigationMenuColor"
orientation="horizontal"
autoDisplay="false">
.........
</p:megaMenu>
<p:commandButton value="open Menu"/>