Oscar Calvente
Oscar Calvente

Reputation: 23

Change "primefaces-themeName" to "primefaces_themeName"

I try to change the folder name primefaces-myTheme to primefaces_myTheme but when I run the application, It throws an exception

<i>Caused by: javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-myTheme" library </i> 

It keeps looking for primefaces-myTheme.

Is it posible to change the folder name primefaces-myTheme to another folder name?

I´m using primefaces 5.2.

Upvotes: 0

Views: 141

Answers (1)

tandraschko
tandraschko

Reputation: 2346

It's not possible because it's hard-coded: https://github.com/primefaces/primefaces/blob/master/src/main/java/org/primefaces/renderkit/HeadRenderer.java#L89

But you can overwrite the HeadRenderer (see: How to register a custom renderer in JSF?)

Upvotes: 4

Related Questions