webtier@glassfish.java.net

Re: JSF - Change views directory

From: <webtier_at_javadesktop.org>
Date: Mon, 07 Jun 2010 06:38:49 PDT

With your index() method, the navigation handler of JSF will first add the same extension to the string as the current page has and look for the resulting resource.
I strongly suspect that the current page has an ".[b]x[/b]html" extension, so the resulting relative address for implicit navigation will be "templates/settings/index.[b]x[/b]html" in your case (mind the [b]x[/b]!).
As your listing suggests, no index.[b]x[/b]html file exists, though (only a index.html file).
Hence, next the handler will try to find a navigation case that maps to the outcome "templates/settings/index", which most likely (and correctly) will not exist.

Either use a logical outcome string and create a navigation case in your faces-config.xml or keep on using implicit navigation and rename index.html to index.[b]x[/b]html.
[Message sent by forum member 'mpscholz']

http://forums.java.net/jive/thread.jspa?messageID=473145