Menu items not highlighting

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
primeUser99282
Posts: 36
Joined: 14 Nov 2021, 01:48

29 Dec 2021, 00:53

I'm trying to get the pr:menu to highlight the button when it is on the corresponding page. No buttons seem to be higlighted. Here is my menu.xhtml:

<div class="menu-wrapper">
<div class="layout-menu-container">
<h:form id="menuform">
<pr:menu widgetVar="RainMenuWidget">
<p:menuitem id="menu-item-dashboard" value="Dashboard" icon="pi pi-home" onclick="showLoading();" url="/dashboard.htm" />
<p:menuitem id="menu-item-user" value="User" icon="pi pi-users" onclick="showLoading();" url="/user.htm" />
</pr:menu>
</h:form>
</div>
</div>

In addition, I'd like to highlight the button if the page was loaded from another link in the site (i.e. not directly clicked on in the menu).

I've seen many examples here but none of them have worked. I checked layout.js to make sure I hadn't changed it, and confirm that it is correct.

PF version 11

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

03 Jan 2022, 10:56

Hi,

We'll check and get back to you.

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Maeve785 and 2 guests