Not recognizing the serenity taglib

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
techlead.allyson
Posts: 2
Joined: 04 Jun 2018, 04:12

06 Jun 2018, 17:19

The css and components are working well, but when we try to put the menu sidebar is not working properly, for some reason the taglib

Code: Select all

xmlns:pm="http://primefaces.org/serenity"
is not working as you can see is those images:
https://imgur.com/a/glwrRW9

We are using Joinfaces(Primefaces 6.1) + Spring boot.

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

11 Jun 2018, 08:18

You need to add SerenityMenu.java and SerenityMenuRenderer.java into your project. Then, please make the following change in faces-config.xml;

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
    
    <name>primefaces_serenity</name>
    
    <component>
        <component-type>org.primefaces.component.SerenityMenu</component-type>
        <component-class>org.primefaces.serenity.component.SerenityMenu</component-class>
    </component>
    
    <render-kit>
        <renderer>
            <component-family>org.primefaces.component</component-family>
            <renderer-type>org.primefaces.component.SerenityMenuRenderer</renderer-type>
            <renderer-class>org.primefaces.serenity.component.SerenityMenuRenderer</renderer-class>
        </renderer>
    </render-kit>
    
</faces-config>
OR

You can use only theme*.jar.

Post Reply

Return to “Serenity - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests