Serenity not fully loaded

Post Reply
jpointe
Posts: 2
Joined: 19 Aug 2019, 18:35

15 Oct 2019, 21:45

Hi,

We just bought the serenity theme.

That is what we did to use the theme:
- copy the serenity-layout fodler into resources
- copy the theserenity-theme.jat into the WEB-INF/lib
- configure the web.xml with primefaces.THEME
- include the js in header and css

<h:outputScript name="js/nanoscroller.js" library="serenity-layout" />
<h:outputScript name="js/layout.js" library="serenity-layout" />
<h:outputScript name="js/ripple.js" library="serenity-layout" />

<h:outputStylesheet name="css/nanoscroller.css" library="serenity-layout" />
<h:outputStylesheet name="css/ripple.css" library="serenity-layout" />
<h:outputStylesheet name="css/layout-moody.css" library="serenity-layout" />

The css seems to be correctly loaded, but the code which dynamically execute js for GUI is never called (contained in layout.js PrimeFaces.widget.Serenity = PrimeFaces.widget.BaseWidget.extend({...).

Is there something I missed to configure ?

jpointe
Posts: 2
Joined: 19 Aug 2019, 18:35

16 Oct 2019, 14:46

Hi all,

Ok it's solved. I changed in sidebar.xhmtl the <pm:menu> in p:menubar so widgets were not loaded. After reversing to pm:menu, all components works fines.

aragorn
Posts: 4042
Joined: 29 Jun 2013, 12:38

17 Oct 2019, 08:44

Glad to hear, thanks a lot for the update!

Best Regards,

sebastian.schamschat
Posts: 2
Joined: 26 Sep 2018, 13:05

18 Feb 2020, 08:59

aragorn wrote:
17 Oct 2019, 08:44
Glad to hear, thanks a lot for the update!

Best Regards,
Hi aragorn,

is it possible to init the widgets without loading the pm:menu? We currently have the issue that we want to draw some pages without the sidebar.

Regards,
Sebastian

aragorn
Posts: 4042
Joined: 29 Jun 2013, 12:38

28 Feb 2020, 12:07

Hi,

Similar issue; viewtopic.php?f=73&t=60236

Best Regards,

Post Reply

Return to “Serenity - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest