myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Chevrier (JIRA)" <>
Subject [jira] Created: (MYFACES-398) Nested x:inputFileUpload causes error page
Date Fri, 05 Aug 2005 18:48:36 GMT
Nested x:inputFileUpload causes error page

         Key: MYFACES-398
     Project: MyFaces
        Type: Bug
  Components: JSF 1.1  
    Versions: 1.0.9 beta    
 Environment: Debian linux, tomcat 5.5.7
    Reporter: Brian Chevrier

I have a jsp that uses the x:inputFileUpload and a h:commandButton to submit a file to my
application. The required attribute is set on the x:inputFileUpload. When I click the h:commandButton
 without putting anything in the x:inputFileUpload, I get an error page. When I call Test.jsp,
it jsp:includes TestMain.jsp which then includes TestBody.jsp. I was doing some debugging
and followed it until I got the exception and noticed that it died where the code had a comment
that the jsp:includes were being processed (I believe there was a call to doFilterChain).
So I tried moving the TestBody.jsp out of the picture and putting the content in TestMain.jsp.
When I did that it behaved properly. The content of the 3 files I am using follows:

<jsp:include page="TestMain.jsp" flush="true">
  <jsp:param name="bodyjsp" value="TestBody.jsp"/>

<%@taglib uri="" prefix="f"%>
<%@taglib uri="" prefix="h"%>
  <body bgcolor="#ffffd8">
      <f:subview id="body" >
        <jsp:include page='<%=request.getParameter("bodyjsp") %>' flush="false" />

<%@ taglib uri="" prefix="f" %>
<%@ taglib uri="" prefix="h" %>
<%@ taglib uri="" prefix="x" %>
<h:form id="id_mainForm" name="mainForm" enctype="multipart/form-data">
  <h:panelGrid columns="1">
  <h:message for="id_fileUpload" errorClass="error"/>
  <h:commandButton id="id_importBtn" value="import"/>

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message