I am using GWT to upload files to the Blobstore.
I am using FormElement uploadForm that represents the <form> that is used to upload the file. After the uploadForm.submit() I need to wait on the same page and capture the callback when the file is correctly uploaded, so that I can place its path on the client code.
How can I do that? Thanks
You just use
FormPanelinstead. You are very limited functions withFormElementThat gives to handle many events.You can even capture the event just before to submit even with that
Update: To use
FormPanelwith HTML element (haven't tested)Step 1 : get
Elementby IdDOM.getElementById("")Step 2: prepare widget with it : get widget by id in gwt
Step 3: :
formPanel.setWidget(thatWidget);