Use o:cache / p:cache for p:menu
Posted: 24 Mar 2021, 08:17
Hi,
I want to use o:cache / p:cache for the menu. I´ve heard it is working for other templates...
I´ve tried already:
I´ve tried also:
But after that my menu is not working anymore and all URL´s get a "#" to the end.
How can this be fixed?
I want to use o:cache / p:cache for the menu. I´ve heard it is working for other templates...
I´ve tried already:
Code: Select all
<h:form id="menu-form">
<o:cache key="cacheMenu" scope="session">
<pm:tabMenu id="tabMenu" stateful="true">
<pm:tab id="testTab" icon="fa fa fa-tachometer"
title="Test">
<pm:menu>
<p:menuitem value="Dashboard" icon="fa fa-fw fa-tachometer" outcome="/mypage" />
Code: Select all
<p:cache key="cacheMenu" scope="session">
<pm:tabMenu id="tabMenu" stateful="true">
<pm:tab id="testTab" icon="fa fa fa-tachometer"
title="Test">
<h:form id="menu-form">
<pm:menu>
<p:menuitem value="Dashboard" icon="fa fa-fw fa-tachometer" outcome="/mypage" />
How can this be fixed?