Re: Page rendering problem with named parameters

Splash Forums PrettyFaces Users Page rendering problem with named parameters Re: Page rendering problem with named parameters

#23484

I think the reason that your CSS files didn’t load is caused by the fact that you are using relative paths for loading the css:

<link href="css/default.css" rel="stylesheet" media="screen" type="text/css" />

For the browser this means that the file has to be downloaded relative to the “current directory”. With your mapping, If you request an URL like this:

http://localhost/mycontextpath/admin-agent-profile/23

The “current directory” is:

http://localhost/mycontextpath/admin-agent-profile/

So the browser will request:

http://localhost/mycontextpath/admin-agent-profile/css/default.css

Which won’t work of cause. Therefore you should always use absolute paths like this:

<link href="#{request.contextPath}/css/default.css" rel="stylesheet" media="screen" type="text/css" />

I hope this clears up the situation. :)