Themes like Manhatten store the active-menuitem into a cookie:
manhattan_expandeditems=menuform%3Apm_app_uipatterns%2Cmenuform%3Aj_idt32
Under some circumstances the id automatically assigned by JSF is different between multiple JSF-Views. As a result of this, the wrong menuitem is marked als active-menuitem.
As a workaround we manually need to assign (fixed) ids to the menuitems.
(Issue reproduced with Primefaces 6.2, Manhattan 1.0.2 and JSF/Mojarra 2.3.3. Versions should not matter because the logic is implemented in layout.js provided by (eg) Manhattan-Theme.)
Primefaces-Themes (eg Manhattan); active-menuitem does not work under some circumstances
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
I think thats expected. Id's are more random as expected (thats up to the JSF impl, not PF), so therefore it's always good to set fixed ids.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
http://showcase.omnifaces.org/viewhandl ... iewHandler helps out here
-
- Information
-
Who is online
Users browsing this forum: No registered users and 25 guests