THANKS for the quick response.
How did THAT happen?
Sorry, I did not mention that I am using a facelets template and in that template, I have:
<h:outputStylesheet library="css" name="styles.css"/>
I am also using Primefaces 3.0.M2
The code I quoted above came out of mozilla firebug when I tried to run and debug my web app.
To be precise, the URL gets routed to FacesServlet when it matches your pattern (*.faces). Which wouldn't happen if the URL ended with (.xhtml). The query string part of the URL is ignored.
My web.xml routes.xhtml to the FacesServlet rather than .faces due to the servlet mapping below ( I think)
<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>*.xhtml</url-pattern>
</servlet-mapping>