Daniel Kurka has submitted this change and it was merged.
Change subject: FileUpload failed to initialize internal state
......................................................................
FileUpload failed to initialize internal state
fixes issue 5055
Change-Id: I74ccb2617bb301aeaf0845e5c43f724d6247b3ca
Review-Link: https://gwt-review.googlesource.com/#/c/2981/
---
M user/src/com/google/gwt/user/client/ui/FileUpload.java
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Leeroy Jenkins: Verified
Thomas Broyer: Looks good to me, approved
diff --git a/user/src/com/google/gwt/user/client/ui/FileUpload.java
b/user/src/com/google/gwt/user/client/ui/FileUpload.java
index dd14e84..48f2292 100644
--- a/user/src/com/google/gwt/user/client/ui/FileUpload.java
+++ b/user/src/com/google/gwt/user/client/ui/FileUpload.java
@@ -130,10 +130,8 @@
* Constructs a new file upload widget.
*/
public FileUpload() {
- setElement(Document.get().createFileInputElement());
+ this(Document.get().createFileInputElement());
setStyleName("gwt-FileUpload");
- impl = GWT.create(FileUploadImpl.class);
- impl.init(this);
}
/**
@@ -146,6 +144,8 @@
protected FileUpload(Element element) {
assert InputElement.as(element).getType().equalsIgnoreCase("file");
setElement(element);
+ impl = GWT.create(FileUploadImpl.class);
+ impl.init(this);
}
public HandlerRegistration addChangeHandler(ChangeHandler handler) {
--
To view, visit https://gwt-review.googlesource.com/2981
To unsubscribe, visit https://gwt-review.googlesource.com/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I74ccb2617bb301aeaf0845e5c43f724d6247b3ca
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Daniel Kurka <[email protected]>
Gerrit-Reviewer: Daniel Kurka <[email protected]>
Gerrit-Reviewer: John A. Tamplin <[email protected]>
Gerrit-Reviewer: Leeroy Jenkins <[email protected]>
Gerrit-Reviewer: Thomas Broyer <[email protected]>
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors
---
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.