2 Replies Latest reply on Apr 21, 2010 9:34 AM by Ilya Shaikovsky

    rich:fileUpload include problem!

    Soft Master Newbie

      Hello everybody!

      I'm developing a web application using rich faces and jsf 1.1. I have created an index page which I load the contents using <jsp:include tag. One of the pages I include is uploadNewFile.jsp and it's content is this:


       <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
      <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
      <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
      <f:subview id="sub1">
      <h:form enctype="multipart/form-data">
      <rich:fileUpload ajaxSingle="true" addControlLabel="Upload a new file!" maxFilesQuantity="5" fileUploadListener="#{fileUploadBean.listener }"></rich:fileUpload>


      This page on its own works ok by uploading the files correctly at the destination i have specified in the fileUploadBean. But, when i include the upload page in my index page, then i't doesn't upload. I doesn't even write to console a sample text which I call from listener function.

      The upload page is included in this way:

      <jsp:include page="uploadNewFile.jsp"></jsp:include>

      In order not to have nested h:form i din't write a form tag in the index page.

      Thanx in advance. I would apprechiate any kind of advice or help.