Re: JSF 2.0 template problem
Check your faces-config.xml and your web.xml for entries that define how your pages are mapped. You probably have an entry in there somewhere that looks something like this:
Quote:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
Now, the template works on the index because there is a separate entry that maps the default URL to the index.xhtml, so that is covered in the template.
Re: JSF 2.0 template problem
Yes I have the above entry in my web.xml file. Index.xhtml file is working fine.
What should I do to get my other pages work?
Re: JSF 2.0 template problem
You should just be able to get rid of the "/faces" and leave the "/*" and it should pick up everything from the root. This entry is telling the server where to expect all of the JSF style web pages, so if you leave it as /faces/* it is expecting everything to be under that URL pattern.