p:submenu don't expanding and collapsing after update on parent element
Posted: 01 Aug 2018, 18:32
When loading the page the "p:submenu" works correctly, however, after performing an update on the "p:outputPanel" where it is "parent element", simply stops working, the submenu don't expand and collapse.
"Expanding and collapsing" only works again if you refresh the page.
Menu:
Button that performs update:
Any solution?
Thanks
"Expanding and collapsing" only works again if you refresh the page.
Menu:
Code: Select all
<p:outputPanel id="layout-sidebar" layout="block">
<h:form id="menuform">
<pm:menu>
<p:menuitem id="dashboard"/>
<p:submenu id="sss" label="sss" icon="sss">
<p:menuitem value="ttt" icon="ttt"/>
<p:menuitem value="uuu" icon="uuu"/>
<p:menuitem value="vvv" icon="vvv"/>
</p:submenu>
<p:submenu id="www" label="www" icon="www">
<p:menuitem value="xxx" icon="xxx"/>
<p:menuitem value="yyy" icon="yyy"/>
<p:menuitem value="zzz" icon="zzz"/>
</p:submenu>
</pm:menu>
</h:form>
</p:outputPanel>
Code: Select all
<p:commandLink title="xxx" actionListener="#{xxx.yyy}" update="layout-sidebar"></p:commandLink>
Any solution?
Thanks