Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.5
    • Component/s: None
    • Labels:
      None

      Description

      A file upload component is necessary.

      Currently, I favor implementing this as an add-on library, since many applications will not need support for uploads (and the upload support adds depenencies on a bunch of Jakarta commons libraries).

      1. tapestry-upload-2.zip
        58 kB
        Ben Sommerville
      2. tapestry-upload.zip
        58 kB
        Ben Sommerville

        Activity

        Hide
        Ben Sommerville added a comment -

        Attached is an implementation of a file upload component for Tapestry 5.
        I needed it for my current project & I figured others may need it too.

        The component is implemented as an add on library. I modeled the project after tapestry-spring, tapestry-hibernate, etc so hopefully it can be dropped in with minimal changes. I've assumed that it would be included in the Apache Tapestry project. If that is not the appropriate place, let me know where it should go & I will tweak.

        The library includes one component (called "upload") plus the necessary filters & services to handle receiving a multipart request. It is dependent on commons-fileupload & commons-io (& tapestry of course).

        Any criticism/suggestions are welcome.

        Show
        Ben Sommerville added a comment - Attached is an implementation of a file upload component for Tapestry 5. I needed it for my current project & I figured others may need it too. The component is implemented as an add on library. I modeled the project after tapestry-spring, tapestry-hibernate, etc so hopefully it can be dropped in with minimal changes. I've assumed that it would be included in the Apache Tapestry project. If that is not the appropriate place, let me know where it should go & I will tweak. The library includes one component (called "upload") plus the necessary filters & services to handle receiving a multipart request. It is dependent on commons-fileupload & commons-io (& tapestry of course). Any criticism/suggestions are welcome.
        Hide
        Ben Sommerville added a comment -

        Upload component updated for changes in Tapestry core

        • change @Lifecycle to @Scope
        • method name changes in TestCase classes
        • Fix for Alias service not initialised error
        Show
        Ben Sommerville added a comment - Upload component updated for changes in Tapestry core change @Lifecycle to @Scope method name changes in TestCase classes Fix for Alias service not initialised error
        Hide
        Howard M. Lewis Ship added a comment -

        Looks like a great patch! I'm only going to tweak one or two minor things.

        Show
        Howard M. Lewis Ship added a comment - Looks like a great patch! I'm only going to tweak one or two minor things.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development