gonuldas / gwtupload

Automatically exported from code.google.com/p/gwtupload
Other
0 stars 0 forks source link

Duplicate error message (alert) on server error #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As already reported on the mailing list 
(http://groups.google.com/group/gwtupload/browse_thread/thread/5fb5fd1347442dcf)
 I get 2 error messages when a server error occurs: at first I get an alert 
with the plain error
message from the server, and after clicking "Ok" there's another alert
box starting with

  "The upload was canceled because there was an error in the server.
Server error is:"

and the server error message again.

AFAICS the first one is from BaseUploadStatus.setError (calling
setStatus and Window.alert). Not sure where's the second one coming from. 

gwtupload version is 0.6.3-compat.

Original issue reported on code.google.com by martin.grotzke on 7 Jul 2011 at 10:49

GoogleCodeExporter commented 8 years ago
Does it happen with 0.6.4-snapshot?

Original comment by manuel.carrasco.m on 12 Jul 2011 at 7:12

GoogleCodeExporter commented 8 years ago
I'm unable to reproduce the issue with latest code. Could you give more info 
about how to see the problem or send a piece of code?

thanks

Original comment by manuel.carrasco.m on 12 Jul 2011 at 11:27

GoogleCodeExporter commented 8 years ago
I'm on vacation right now but next week I can give feedback. I didn't test with 
trunk version but with the one specified.

Original comment by martin.grotzke on 12 Jul 2011 at 12:03

GoogleCodeExporter commented 8 years ago
Just tested with 0.6.4-SNAPSHOT, with this the issue seems to be solved - the 
alert box is showed only once.

Just fyi, some code...

In the ui binder template:

<gupld:SingleUploader ui:field="userDataUploader" 
title="{messages.userimport_fileupload_label}" />
<g:Button ui:field="uploadButton" text="{messages.generic_upload}"/>

Java class:

@UiField(provided = true)
Button uploadButton = new Button();

@UiField(provided = true)
SingleUploader userDataUploader = new 
SingleUploader(FileInputType.BROWSER_INPUT, null, this.uploadButton);

I just checked this: When I remove the custom button (from template and java) 
and have just the SingleUploader the issue does also not show up in 
0.6.3-compat.

Original comment by martin.grotzke on 21 Jul 2011 at 6:50

GoogleCodeExporter commented 8 years ago
I do not follow what the issue is in your example. Could you explain a bit more?

thanks

Original comment by manuel.carrasco.m on 28 Jul 2011 at 11:24

GoogleCodeExporter commented 8 years ago
As written in my previous comment: With 0.6.4-SNAPSHOT this issue seems to be 
solved - the alert box is showed only once.

You can close this issue.

Cheers,
Martin

Original comment by martin.grotzke on 28 Jul 2011 at 1:33

GoogleCodeExporter commented 8 years ago
ok, thanks

- Manolo

Original comment by manuel.carrasco.m on 28 Jul 2011 at 5:38