Re: Page rendering problem with named parameters

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

#23482

Looks like there are 404 errors. The same thing that is happening to the links on the page are happening to the css file references.

The url for the css file is coming up as http://localhost:8084/Agents/admin-agent-profile/css/default.css

The admin-agent-profile part of the link is the url mapping in the prettyfaces config. It shouldn’t be in the url of the css file.

The snippet for my css file in the facelets template page is like this:

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

Again, this has worked up till now with the named parameter.

Web.xml:

<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Production</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
<url-pattern>*.xhtml</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>Index.xhtml</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/Login.xhtml</form-login-page>
<form-error-page>/Error.xhtml</form-error-page>
</form-login-config>
</login-config>
<resource-ref>
<res-ref-name>jdbc/UCPPool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>

pretty-config.xml:

http://dl.dropbox.com/u/4179337/pretty-config.xml