Forums Register Login

JSF Lifecycle - URL confusion (forwarding to protected resource)

+Pie Number of slices to send: Send
Assuming I have a Faces servlet configured thusly:



when i enter a url, into the browser, JSF processes the request and finds the corresponding xhtml file

for example: hxxp://localhost:8080/myApp/xhtml/welcome.jsf 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?



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
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1169 times.
Similar Threads
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
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:49:49.