diff --git a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardCard.java b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardCard.java
index 8342645..8c43581 100644
--- a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardCard.java
+++ b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardCard.java
@@ -6,7 +6,6 @@ package org.gcube.portlets.user.td.wizardwidget.client;
import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
import com.allen_sauer.gwt.log.client.Log;
-
import com.google.gwt.user.client.ui.HTML;
import com.google.web.bindery.event.shared.EventBus;
import com.sencha.gxt.widget.core.client.Component;
@@ -263,9 +262,9 @@ public class WizardCard extends BorderLayoutContainer {
return (indexPosition>=0)?indexPosition+1:indexPosition;
}
- public void showErrorAndHide(String title, final String message, final Throwable throwable)
+ public void showErrorAndHide(String title, final String message, String details, final Throwable throwable)
{
- wizardWindow.showErrorAndHide(title, message, throwable);
+ wizardWindow.showErrorAndHide(title, message, details, throwable);
}
public void hideWindow()
diff --git a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardListener.java b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardListener.java
index 4e9608e..8b6a353 100644
--- a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardListener.java
+++ b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardListener.java
@@ -32,10 +32,11 @@ public interface WizardListener {
/**
* Called when the something in the wizard is failed.
- * @param title TODO
- * @param message the failure reason or null
.
- * @param throwable the exception or null
.
+ * @param title
+ * @param message the failure reason.
+ * @param details the failure details.
+ * @param throwable the exception.
*/
- public void failed(String title, String message, Throwable throwable);
+ public void failed(String title, String message, String details, Throwable throwable);
}
diff --git a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardWindow.java b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardWindow.java
index d87b257..5835514 100644
--- a/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardWindow.java
+++ b/src/main/java/org/gcube/portlets/user/td/wizardwidget/client/WizardWindow.java
@@ -14,7 +14,6 @@ import com.google.gwt.core.client.Callback;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.user.client.Command;
import com.google.gwt.dom.client.Element;
-
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Widget;
import com.google.web.bindery.event.shared.EventBus;
@@ -467,13 +466,13 @@ public class WizardWindow extends Window {
}
public void showErrorAndHide(final String title, final String message,
- final Throwable throwable) {
- UtilsGXT3.alert(title, message, new Callback() {
+ final String details, final Throwable throwable) {
+ UtilsGXT3.alert(title, message+" "+details, new Callback() {
@Override
public void onFailure(Void reason) {
hide();
- fireFailed(title, message, throwable);
+ fireFailed(title, message, details, throwable);
}
@@ -503,8 +502,8 @@ public class WizardWindow extends Window {
listener.aborted();
}
- public void fireFailed(String title, String message, Throwable throwable) {
+ public void fireFailed(String title, String message, String details, Throwable throwable) {
for (WizardListener listener : listeners)
- listener.failed(title, message, throwable);
+ listener.failed(title, message, details, throwable);
}
}