PrettyFaces or rewrite breaks up CSS and images in JSF sites
It seems that in my jsf project PrettyFaces breaks up link to CSS file and
images when page navigation goes to deeper directory levels.
I am working with templates. The CSS is defined in the template in the
head part of the website:
<link href="resources/css/stylesheet.css" rel="stylesheet" type="text/css" />
For sites like ../home/direc the CSS doesn't work anymore. I have solved
this by adding the CCS link twice:
<link href="resources/css/stylesheet.css" rel="stylesheet" type="text/css" />
<link href="../resources/css/stylesheet.css" rel="stylesheet"
type="text/css" />
For my image I don't see a solution. It's in the menu, so for the pages
where the navigation goes not to deeper directory levels the image is
displayed correctly for others not.
Can anyone help me to solve this problem?
No comments:
Post a Comment