po:menu doesn't show

Post Reply
amatos
Posts: 3
Joined: 29 Jan 2016, 04:25

11 Apr 2017, 17:24

Hi!
I recently bought the theme and I have an issue with the menu. Trying to replicate the example project I see that <po:menu> works fine, but when I use it in my own project it doesn't recognize the po tag showing it as an error. This is what I have:

Code: Select all

<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
    xmlns:po="http://primefaces.org/omega"
    >
But when I try to use the po:menu I get this error:

Image

Do I need to configure something else?
Thanks!!

User avatar
aragorn
Posts: 2985
Joined: 29 Jun 2013, 12:38

12 Apr 2017, 13:23

Please add primefaces-omega.taglib.xml under WEB-INF.

amatos
Posts: 3
Joined: 29 Jan 2016, 04:25

12 Apr 2017, 18:14

yeap, that did the trick.

In faces-config I see this:

Code: Select all

<component>
        <component-type>org.primefaces.component.OmegaMenu</component-type>
        <component-class>org.primefaces.omega.component.menu.OmegaMenu</component-class>
    </component>
    
    <render-kit>
        <renderer>
            <component-family>org.primefaces.component</component-family>
            <renderer-type>org.primefaces.component.OmegaMenuRenderer</renderer-type>
            <renderer-class>org.primefaces.omega.component.menu.OmegaMenuRenderer</renderer-class>
        </renderer>
    </render-kit>
Is this necesary?
Thank!!

User avatar
aragorn
Posts: 2985
Joined: 29 Jun 2013, 12:38

13 Apr 2017, 09:42

Thanks for the update, if you are using theme.jar (not *.scss of theme), it is not necessary.

cahendi
Posts: 4
Joined: 20 Jul 2016, 07:10

20 May 2017, 20:09

Can I request full source code about it (primefaces-omega.taglib.xml, face-config.xml and web.xml)? thank's

amatos
Posts: 3
Joined: 29 Jan 2016, 04:25

21 May 2017, 01:31

It's inside the archive you receive when you download the theme.

User avatar
aragorn
Posts: 2985
Joined: 29 Jun 2013, 12:38

23 May 2017, 11:36

+1 ;) Thanks a lot, @amatos.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests