Igor Vaynberg wrote:
On 7/4/07, Al Maw <[EMAIL PROTECTED]> wrote:

Do we really need to go around and aggressively clean up these
InputStreams? Can't we do that in a finalize() method somewhere?


yes we do, because users dont do it themselves :) we can also add something
like

protected boolean closeStreamOnDetach() { return  true; } that you can
override

Hokay. Just added this in.

===

/**
 * The FileUploadField will close any input streams you have opened in
 * its FileUpload by default. If you wish to manage the stream yourself
 * (e.g. you want to use it in another thread) then you can override
 * this method to prevent this behaviour.
 */
protected boolean forceCloseStreamsOnDetach()

===

Regards,

Al

--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

Reply via email to