Christian Köberl created TAP5-2136:
--------------------------------------

             Summary: Page with Upload component loses context on 
FileUploadException
                 Key: TAP5-2136
                 URL: https://issues.apache.org/jira/browse/TAP5-2136
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-upload
    Affects Versions: 5.3.7, 5.2.6
            Reporter: Christian Köberl


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


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to