You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "versuech2@bluewin.ch" <ve...@bluewin.ch> on 2006/10/17 19:16:04 UTC
JspViewHandler getServletMapping
Hi all
I'd like to use a non JSF servlet and forward to a view from there.
In the servlet I initialize a lifecycle and faces context. At the end
of the servlet I do something like:
navigationHandler.handleNavigation()
lifecycle.render()
Actually as it didn't work as expected I found an interesting
article on the net:
http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls
The problem is now that the action of the form is wrong.. as
described here:
http://www.mail-archive.com/users%40myfaces.apache.org/msg15139.
html
I analyzed the code of the JspViewHandler and IMHO the problem is
that the servlet mapping returned by getServletMapping is the one of
the non JSF servlet.. :(
I wonder if a check to servletMapping.getServletClass().equals
("javax.faces.FacesServlet") would make sense? Or even load the
class and check if its an instanceof a FacesServlet or something like
this.. just thinking loud..
I don't like the workaround described on the mailinglist entry
above. The one where my servlet is mapped to /MyServlet.jsf ..
It would be cool if someone could have a look at this.. :)
Appreciate any help
Cheers