Page 1 of 1

po:menu doesn't show

Posted: 11 Apr 2017, 17:24
by amatos
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!!

Re: po:menu doesn't show

Posted: 12 Apr 2017, 13:23
by mert.sincan
Please add primefaces-omega.taglib.xml under WEB-INF.

Re: po:menu doesn't show

Posted: 12 Apr 2017, 18:14
by amatos
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!!

Re: po:menu doesn't show

Posted: 13 Apr 2017, 09:42
by mert.sincan
Thanks for the update, if you are using theme.jar (not *.scss of theme), it is not necessary.

Re: po:menu doesn't show

Posted: 20 May 2017, 20:09
by cahendi
Can I request full source code about it (primefaces-omega.taglib.xml, face-config.xml and web.xml)? thank's

Re: po:menu doesn't show

Posted: 21 May 2017, 01:31
by amatos
It's inside the archive you receive when you download the theme.

Re: po:menu doesn't show

Posted: 23 May 2017, 11:36
by mert.sincan
+1 ;) Thanks a lot, @amatos.