Problems on Designer 1.0.1

Post Reply
horstL
Posts: 3
Joined: 25 Jul 2016, 15:50

06 Dec 2019, 12:51

hi,

first of all nice would be a link in a README.md file to https://primefaces.org/designer-jsf/documentation.xhtml

or whatever the product is jsf/ng/vue etc

because if somebody just try's as me, you are running into troubles

PRE-Condition is:
install SASS it should be exectuabel (means in PATH !). then error Nr 2 not happening

Step 1) in unzipped project folder
this you have to run
sass --update src/main/webapp/resources/

it creates the theme.css

Step 2) build with mvn
a few remarks compiler woud be nice to have >= 1.8 / some environments complain this immediately

Code: Select all

mvn clean package 
fails: with
ERROR Nr 1

Code: Select all

package javax.annotation does not exist
- add

Code: Select all

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>javax.annotation-api</artifactId>
    <version>1.2</version>
</dependency>
after adding this designer compile works

Step 3) run jetty to access the UI (add port because i have running other app on 8080)

Code: Select all

mvn clean jetty:run -Djetty.http.port=8082
connect to http://localhost:8082/designer

ERROR Nr 2

Code: Select all

[INFO] Started Jetty Server
Dec 06, 2019 11:13:25 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/sample.xhtml]
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
	at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:149)
	at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:81)
....
Dec 06, 2019 11:13:27 AM com.sun.faces.context.ExceptionHandlerImpl log
1100: JSF1073: javax.faces.FacesException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
Dec 06, 2019 11:13:27 AM com.sun.faces.context.ExceptionHandlerImpl log
1100: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
warnings which should be fixed also

Code: Select all

[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.primefaces:designer:war:1.0.1
[WARNING] The expression ${build.sourceDirectory} is deprecated. Please use ${project.build.sourceDirectory} instead.
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 

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

25 Dec 2019, 08:16

Some annotations are removed on Java 9. Therefore, you need to use javax.annotation dependency in your project. Could you please check theme css file under primefaces-nova-light folder? Warnings can be related to maven version.

Best Regards,

Post Reply

Return to “PrimeFaces Theme Designer API”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests