03-19-2008 08:59 AM
03-21-2008 10:21 AM
03-24-2008 09:13 AM
03-27-2008 06:31 AM
03-27-2008 10:59 AM
03-27-2008 01:06 PM
Index: projects/web-client/source/java/org/alfresco/web/app/servlet/FacesHelper.java
===================================================================
— projects/web-client/source/java/org/alfresco/web/app/servlet/FacesHelper.java (revision 6799)
+++ projects/web-client/source/java/org/alfresco/web/app/servlet/FacesHelper.java (working copy)
@@ -24,6 +24,8 @@
*/
package org.alfresco.web.app.servlet;
+import java.text.MessageFormat;
+
import java.util.regex.Pattern;
import javax.faces.FactoryFinder;
@@ -40,6 +42,7 @@
import javax.servlet.ServletContext;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
+import javax.servlet.http.HttpServletRequest;
import org.alfresco.error.AlfrescoRuntimeException;
import org.alfresco.web.bean.generator.IComponentGenerator;
@@ -115,8 +118,20 @@
InnerFacesContext.setFacesContextAsCurrent(facesContext);
// set a new viewRoot, otherwise context.getViewRoot returns null
+ if (request instanceof HttpServletRequest)
+ {
+ HttpServletRequest hsr = (HttpServletRequest) request;
+ String path = hsr.getServletPath();
+ if (!path.startsWith("/faces"))
+ {
+ if (logger.isDebugEnabled())
+ {
+ System.out.println(MessageFormat.format("No JSF request found, creates a JSF tree for path {0}", path));
+ }
UIViewRoot view = facesContext.getApplication().getViewHandler().createView(facesContext, "/jsp/close.jsp");
facesContext.setViewRoot(view);
+ }
+ }
return facesContext;
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.