Omega not working in PrimeFaces X

Post Reply
wolf97084
Posts: 15
Joined: 23 Mar 2015, 17:03

31 Mar 2021, 21:32

Hi, we have a purchased Omega theme. I am trying to upgrade PrimeFaces from 7 to X (10). I included omega-menu-2.0.0.jar in my project, put in PrimeFaces Theme in my web.xml

Code: Select all

    <context-param>
        <param-name>primefaces.THEME</param-name>
        <param-value>omega</param-value>
    </context-param>
Also add the omega layout css/js in my xhtml.

Project compiled fine, but it won't run because of the following error,

Code: Select all

 javax.faces.FacesException: Error loading CSS, cannot find "theme.css" resource of "primefaces-omega" library
	at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:162)
	at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:102)
I am wondering maybe the omega-menu-2.0.0.jar is not the omega theme jar, but where could I get the omega theme jar? How do I solve this issue?

Thank you!
PrimeFaces 7.0; JSF 2.2, Tomcat 9.0

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

15 Apr 2021, 16:38

Hi,

Primefaces 10 supported update for omega template has not been released yet.

Best Regards,

chbadev
Posts: 2
Joined: 05 Mar 2019, 11:26

04 May 2021, 14:12

Hi,

Do you have an idea when the Omega template will be released for compatibility with PrimeFaces X ?

Because actually i have this error too : Error loading CSS, cannot find "theme.css" resource of "primefaces-omega" library

Thank you

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

04 May 2021, 16:32

Hi,

You can use "saga" theme for PrimeFaces X. Also omega template update will be released in 2-3 weeks.

Best Regards,

rvico
Posts: 1
Joined: 18 Jun 2015, 15:46

27 May 2021, 22:20

Hi, I downloaded Omega 3.0 that is supposed to work on primefaces X, but I'm getting this error:

javax.faces.FacesException: Error loading CSS, cannot find "theme.css" resource of "primefaces-omega" library
at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:162)
at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:102)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:540)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1644)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:468)


I see in migration guide from 8.0 to 10.0, that omega is removed:
Core
Facelet function p:resolveWidgetVar now returns the widget var name only, instead of PF('widgetVarName').
Animations changed from jQuery to CSS Animations. Removed showEffect and hideEffect from many components. See: https://github.com/primefaces/primefaces/issues/6973
Removed aristo theme and now saga the default theme
Removed omega theme
I have all the files on my project as said in documentation, it was working fine with primefaces 8.0. Is there something I'm missing?

BR.

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

31 May 2021, 09:18

Hi,

Omega-layout now uses "saga" theme as default. So please if you want to use PF10 change to "saga" theme in web.xml file.

Best Regards,

Post Reply

Return to “Omega - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests