Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
JSF Lifecycle - URL confusion (forwarding to protected resource)
posted 5 years ago
Assuming I have a Faces
<servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> <url-pattern>/icefaces/*</url-pattern> </servlet-mapping>
when i enter a url, into the browser,
processes the request and finds the corresponding xhtml file
would return the file ./WebContent/xhtml/welcome.xhtml
If I have the following in the faces-config.xml file, why doesnt it return the home page? Must it be a form submission that starts the JSF lifecycle?
<navigation-rule> <from-view-id>/xhtml/*</from-view-id> <navigation-case> <to-view-id>/WEB-INF/xhtml/home.jsf</to-view-id> </navigation-case> </navigation-rule>
Are the navigation rules used after the Invoke Application phase? Is there any way to reach the Invoke Application stage of the JSF lifecycle by hitting a url?
I'm trying to automatically forward from a resource outside /WEB-INF to a resource inside WEB-INF after spring security login
java.lang.IllegalStateException: using sendRedirect()
Issues with facelets and saveState?
JSF property file's value is not executing
Problem running a simple JSF application
action is not going to facesconfig.xml from login page