Primefaces-Themes (eg Manhattan); active-menuitem does not work under some circumstances

UI Components for JSF
Post Reply
christophs
Posts: 6
Joined: 01 Mar 2018, 12:35

22 May 2018, 16:17

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.)

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

22 May 2018, 21:58

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

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

24 May 2018, 21:56


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests