Default.css is not loaded for openfaces

800 views Asked by At

I am getting title as error and it is asking

Did you use head instead of h:head?

I started to use OpenFaces, add JAR to library, and add namespace

xmlns:o="http://openfaces.org/"

I can see components working right but without styling. I am using a tree, I can expand it but can not close it.

Should I add some css to somewhere?

1

There are 1 answers

2
Dmitry Pikhulya On BEST ANSWER

First, I suppose that you've used <h:head> tag in your xhtml page (and not the plain <head> tag), as the error message suggests...

Other than that there's nothing that you should do to make it work without this error (if you're using JSF 2.x based version of OpenFaces).

If you're using OpenFaces 3.0 release (with JSF 2.x) then there was a bug where this error was shown in some configurations despite having the <h:head> tag in the page. Try the current nightly build where this problem is fixed.