Re: Adding a progress listener to UploadedFile

2012-11-23 Thread Lance Java
In tapestry 5.2+ you have the option of annotations or naming conventions. Prior to 5.2 you can only use naming conventions. See methods starting with "contribute" here http://tapestry.apache.org/tapestry-ioc-configuration.html -- View this message in context: http://tapestry.1045711.n5.nab

Re: Adding a progress listener to UploadedFile

2012-11-23 Thread dkeenan
Thanks. I wasn't able to use the following annotation and method... @Contribute(ServiceOverride.class) public static void setupApplicationServiceOverrides(MappedConfiguration configuration) { configuration.addInstance(SomeServiceType.class, SomeServiceTypeOverrideImpl.class); } I have a

Re: Adding a progress listener to UploadedFile

2012-11-23 Thread Lance Java
http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-progress-listener-to-UploadedFile-tp5718197p5718205.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Adding a progress listener to UploadedFile

2012-11-23 Thread Lance Java
You will need to override (or perhaps decorate) the MultipartDecoder. Most likely, you will extend MultipartDecoderImpl and extend the following method to add your progress listener: Note that the MultipartDecoder has per-thread scope https://github.com/apache/tapestry5/blob/trunk/tapestry-uplo

Re: Adding a progress listener to UploadedFile

2012-11-22 Thread dkeenan
Yes. Is there a way to set the listener from within Tapestry? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adding-a-progress-listener-to-UploadedFile-tp5718197p5718199.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Adding a progress listener to UploadedFile

2012-11-22 Thread Paul Stanton
you are referring to: http://commons.apache.org/fileupload/using.html#Watching_progress ? On 23/11/2012 8:49 AM, dkeenan wrote: Hi there. I would like to add a progress listener to UploadedFile to track progress up the file being uploaded. I know that it's possible to do this with apache commo