Hallo,
I would like to achieve following functionality, how is it possible?

I have an abstract panel with upload field in it.
The panel is to be used as a form component.

In the panel there is an abstract method
processFile(FileUpload fileUpload)
which I would like to get called everytime a form gets submitted, so I would just add the element, fill the method and done.

At first I thought that it would work by letting panel implement IFormSubmitListener and in panel implement interface method this way:

onFormSubmitted() {
   processFile(uploadField.getFileUpload());
}

But it does not work this way.

I am using this panel in a wizard, which has already its own Form, so I cannot override onSubmit method of this form and I do not want to alter much code, I thought that this would be an elegant way how to do it.

Is there any other way how to do it? Or do you have some reading where can I find beside studying the code, which is a bit difficult for me at this time?

Thank you.

Vitek

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to