Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-947

Problem with seam component <s:fileUpload/> in JBoss Portal

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.5.GA, 1.1.6.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: JSF Integration
    • Labels:
      None
    • Environment:

      Windows XP Pro service pack 2, I.E. and FireFox, JBossAS 4.0.5.GA, JBoss Portal 2.4.1

      Description

      I need to upload a file to Jackrabbit Repository using Seam Framework running on Portlet, with the <s:fileUpload/> component.
      It doesn't work.
      I've tried different ways to solve the problem, but none worked.
      It could be a bug.
      It seams that when the enctype of h:form is ="multipart/form-data", the method upload of fileManager is not called; if I don't set the enctype of h:form the method upload is called, but the bean file is null.

      I'm trying with this configutaration:

      JSP
      <h:form id="myForm" enctype="multipart/form-data" >
      <s:fileUpload accept="" fileName="#

      {file.filename}

      " data="#

      {file.data}

      " />
      <h:commandButton value="Upload" action="#

      {fileManager.upload}

      "/>
      </h:form>

      BEAN
      "file" is the bean that represents the file uploaded
      "fileManager" is the bean that use the file uploaded

      WEB.XML
      ...

      <filter-name>Seam Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamMultipartFilter</filter-class>

      <filter-mapping>
      <filter-name>Seam Filter</filter-name>
      <url-pattern>*.seam</url-pattern>
      </filter-mapping>
      ...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shane.bryzak Shane Bryzak
                Reporter:
                ppassantini Pietro Passantini
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: