Hi all, I've been giving a quite amount of time trying to figure out a way to get struts-faces and MyFaces to work together. Previous threads list this issue: http://www.mail-archive.com/[email protected]/msg00265.html
and state that using a RequestWrapper would solve the problem. I looked into this in detail, and it's not a possible solution. Details can be found here: http://issues.apache.org/bugzilla/show_bug.cgi?id=32014 The incompatibility lies in JspViewHandlerImpl.renderView's attempt to determine if extension mapping is used. I've been racking my brain trying to figure out a way struts-faces could get around this problem, but have come up with nothing. The only way I can think of to get this working would be to modify MyFaces in one of two ways: 1. In JspViewHandlerImpl.getServletMapping, instead of trying to get the servlet mapping for the current servlet request, the servlet mapping for 'javax.faces.webapp.FacesServlet' is looked up. Isn't that what's really desired anyway? 2. Add an optional config variable to MyfacesConfig so that you can explicitly state what type of mapping is being used. If this variable is not set, operation would continue as it does now. But, if it is set, JspViewHandlerImpl.renderView will skip the lookup and use the config value. Are either of these an acceptable solution? If so, I could even give you a patch to get this rolling. Thanks, Mike Traum

