2 Replies Latest reply on Jul 9, 2008 2:33 PM by mores

    fileUpload compatiblity with forward from RequestDispatcher

    mores

      I can successfully use a rich:fileUpload component when I go to the url directly: upload.jspx

      While in the same session I can use a forward from a RequestDispatcher to access the fileUpload component and everything works fine.

      Problem: If I start a new session and use the forward from the RequestDispatcher first I get:

      javax.servlet.ServletException: viewId:/upload.jspx - View /upload.jspx could not be restored.
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      ...
      ...

      Am I doing something wrong here, or should I enter this as a bug ?