Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2136

Page with Upload component loses context on FileUploadException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 5.3.7, 5.2.6
    • None
    • tapestry-upload
    • None

    Description

      Given a page with activation context
      And an Upload component on that page
      And an FileUploadException occurs on submit
      Then the page loses the activation context.

      UploadTest.tml:
      <div t:type="layout">
      <form t:type="form">
      <label>Upload File <input type="file" t:type="upload"
      value="uploadedFile"></input></label>
      <input type="submit" t:type="submit" value="Submit" />
      </form>
      </div>

      UploadTest.java:
      public class UploadTest
      {
      @PageActivationContext
      @Property
      private String contextValue;

      @Property
      private UploadedFile uploadedFile;

      @OnEvent("UploadException")
      UploadTest handleException(FileUploadException ex)

      { return this; }

      }

      Demo project to see this problem in action:
      https://github.com/derkoe/tapestry-upload-test

      Attachments

        Activity

          People

            Unassigned Unassigned
            koc Christian Köberl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: