use fileUploadWidget.getElement().setPropertyString("value", ""); when
SubmitCompleteEvent is called.
@UiHandler("uploadFileFormPanel") void
handleuploadFileFormPanelSubmitComplete(SubmitCompleteEvent e){
uploadFile.getElement().setPropertyString("value", "");
presenter.uploadCompleted(e); }
On Tuesday, August 29, 2006 1:36:36 AM UTC+5:30, hovan wrote:
>
> This is form reset solution i modified from Google submit. It works
> for me on both FF & IE.
> Extends FormPanel and add the methods:
>
> public void reset() {
> //form, iframe
> reset(getElement(), DOM.getFirstChild(getElement()));
> }
> /**
> * Reset a form, this code is copy from FormPanelImpl of
> google
> *
> * @param form the form to be submitted
> * @param iframe the iframe that is targetted, or <code>null</code>
> */
> private native void reset(Element form, Element iframe) /*-{
> // Hang on to the form's action url, needed in the
> // onload/onreadystatechange handler.
> if (iframe)
> iframe.__formAction = form.action;
> form.reset();
> }-*/;
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/nCbp80WA6-AJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.