Disclaimer: JSF newbie.
Dev Env: Eclipse Galileo, JSF1.2, Tomcat6
Anticipating a situation where authentication is done external to the in development JSF application.
Successful authentication will invoke my application with a couple inputs describing the user, let's say /url?USERID=GREENHORN. Simple enough, right?
Now, I'm assuming the JSF app cannot be invoked directly and make use of USERID directly.
This I'm assuming is where the NonFacesRequestServlet mockup shown at
http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls comes into play.
I setup navigation rule from "/fake_out.jsp" on outcome success to "/moose.jsp" and have the mockup servlet successfully render the primary JSF page (moose.jsp). That page will have a backing bean (how to feed USERID into that I've not solved yet), and let's say 3 input fields. The form will have action and validation, the beginning of my JSF application.
Trouble - when the JSF moose.jsp page renders, the submit action feeds back to "moose.jsp" which throws a "requested resouce not available" error. If I run a modified "moose.jsp" outside of the servlet mockup, all actions feed to "moose.faces".
If I can't overcome this hurdle, I'll have to ditch JSF altogether. I though about trying to capture the rederred output and rewrite the "moose.jsp" to "moose.faces" but haven't been successful on that yet.
Any clues?
Thanks