I am using form-based authentication in my JSF2 webapp on
Tomcat. On the login page I use css styling. I learned from previous experience with
JSF 1.2 that I need to work on the security constrains, so the page could access the css file on the login page. So I did and the css file is loaded properly. The problem is that the images that are used in the css classes (like background-image: url(../res/img/back.png); ) are not loaded. Surprisingly when I use simple img tag on my login site:
<img src="res/img/back.png">
it works... So the images cannot be loaded only from the css file...
My security constrains are:
This didn't happen it JSF 1.2 Why I the images cannot be loaded in the css file? How to fix this?