Serenity menu state with multiple browser tabs

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
he@eurodata.co.at
Posts: 5
Joined: 19 Sep 2017, 16:25

27 May 2021, 16:41

Hi!
I do have a little problem with the way the active-menuitem styleClasses are set via cookies.
It works fine as long as I only use one tab, but (and this can also be easily reproduced in the serenity live demo) if I click on a menuitem and open it in another tab and than go back to the old tab and refresh the page, the current page and the highlighted menuitem are out of sync, highlighting the menuitem of the other tab.
Is there an easy workaround or fix for that?
Thanks in advance!
Mike

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

31 May 2021, 09:15

Hi,

Jsf cannot generate single page applications due to its nature. We use cache to make similar features of single page application. Maybe a different solution may come with the next version. However, for some reason, it's best to continue using it with cache for now.

Best Regards,

Post Reply

Return to “Serenity - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest