One thing that still doesn't work though (probably because I didn't do some important step) is the loading of css/layout-light.css, i.e. when i specify in template:
Code: Select all
<h:outputScript name="css/layout-light.css" library="freya-layout" target="head"/>
Code: Select all
Uncaught SyntaxError: Invalid or unexpected token (at layout-light.css.xhtml?ln=freya-layout:2:1)
Code: Select all
2022-12-09 16:09:51,565 ERROR [io.und.req.io] (executor-thread-22) Exception handling request 5c890039-c780-47ca-8edc-961d6022ff94-14 to /javax.faces.resource/css/layout-light.css.xhtml: java.lang.NullPointerException: Cannot invoke "String.length()" because "value" is null
at org.apache.myfaces.resource.ValueExpressionFilterInputStream.read(ValueExpressionFilterInputStream.java:134)
at java.base/java.io.InputStream.read(InputStream.java:293)
at java.base/java.io.InputStream.read(InputStream.java:218)
at org.apache.myfaces.application.ResourceHandlerImpl.pipeBytes(ResourceHandlerImpl.java:646)
at org.apache.myfaces.application.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:589)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at org.primefaces.application.resource.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:87)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:72)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
Code: Select all
@-webkit-keyframes fadeInDown {
I was able to eliminate the NullPointerException from the java log by removing background-image: url("#{resource['demo:images/rightpanel/asset-weather.png']}"); from the the freya layout css (line 2078). Btw, is it supposed to be there?
Need some help/directions in figuring out how to resolve the
Code: Select all
layout-dark.css.xhtml?ln=freya-layout:2 Uncaught SyntaxError: Invalid or unexpected token (at layout-dark.css.xhtml?ln=freya-layout:2:1)
When I copy Freya's templates and empty.xhtml to the resources and try to load empty.xhtml the page is not loaded correctly, Chrome inspector shows this errors in the console:
Code: Select all
empty.xhtml:147 GET http://192.168.86.203:8080/RES_NOT_FOUND 404 (Not Found)
layout.js.xhtml?ln=freya-layout:4 Uncaught ReferenceError: PrimeFaces is not defined
at layout.js.xhtml?ln=freya-layout:4:1