1 2 Previous Next 25 Replies Latest reply on Feb 23, 2007 2:03 AM by Jens Weintraut

    New fileUpload component

    Shane Bryzak Master

      I've committed a basic working version of a fileUpload tag to CVS. It doesn't need all the additional jar files that the tomahawk component requires, and is greatly simplified from the 17 levels of abstraction that the Apache version implements. Usage is as such:


      <s:fileUpload id="picture" value="#{register.picture}"/>

       <filter-name>Seam Multipart Filter</filter-name>
       <filter-name>Seam Multipart Filter</filter-name>

      action class:
      public class RegisterAction implements Register
       private byte[] picture;
       public void setPicture(byte[] picture)
       this.picture = picture;
       public byte[] getPicture()
       return picture;

      That's all there is to it. It doesn't do anything fancy yet such as progress notification, etc, or for that matter even store the filename. It would be nice though if someone could give it a try and report back any issues/feature requests either in this thread, or on the following JIRA page:



        1 2 Previous Next