Martijn, For most common scenarios the best fix is to do sufficient validation on the client (JavaScript) that the server side validation is not likely to fail. Going further, you could store the uploaded file *before* the validation fails, and then only display the file's name, rather than the input type=file element, when displaying the form with validation errors.
You may find that these scenarios are handled much better in Ajax-based file upload approaches, such as the Fine File Uploader (formerly Valums). There are Tapestry integrations, such as https://github.com/FineUploader On Dec 5, 2014 1:42 PM, "martijn.list" <martijn.l...@gmail.com> wrote: > Hi, > > I have a form which contains an Upload component and some other fields. > > If I select a file for upload and submit the form and the page > validation fails (for example because I forgot to fill in some required > field), the selected file is no longer selected. > > Is this by design? The other fields are retained on a validation error. > > I'm Using Tapestry 5.4b22 > > Kind regards, > > Martijn Brinkers > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >