Closed GoogleCodeExporter closed 8 years ago
There is a workaround for this. Use the following snippet to show the file
listed as "error". This not exactly your expected behaviour but it comes close.
defaultUploader.addOnStatusChangedHandler(new
IUploader.OnStatusChangedHandler() {
private Set<IUploader> uploadersWithErrors = new HashSet<IUploader>();
@Override
public void onStatusChanged(IUploader uploader) {
if (uploadersWithErrors.contains(uploader)) {
if (!Status.ERROR.equals(uploader.getStatus())) {
uploader.getStatusWidget().setStatus(Status.ERROR);
}
}
if (Status.ERROR.equals(uploader.getStatus())) {
uploadersWithErrors.add(uploader);
}
}
});
Original comment by Christop...@gmail.com
on 15 Dec 2010 at 7:41
Thanks for the response, Chris. I had almost forgotten about this
ticket....that tells that things need to pick up pace on gwt-upload project!
Since we didn't have any case where we show a file with errors, we went with
the following solution, however I can see where we might need to do a hybrid
solution.
OnStatusChangedHandler onStatusChangedHandler = new OnStatusChangedHandler() {
@Override
public void onStatusChanged( IUploader uploader ) {
Uploader u = (Uploader) uploader;
if ( uploader.getStatus() == Status.ERROR ) {
u.removeFromParent();
}
}
};
Original comment by sandeep....@gmail.com
on 18 Dec 2010 at 1:01
This issue was closed by revision r818.
Thank you for reporting.
Original comment by manuel.carrasco.m
on 29 Dec 2010 at 10:30
Original issue reported on code.google.com by
sandeep....@gmail.com
on 22 Sep 2010 at 2:25