From 7bc6b97d258884cc86577ee4b635de1cf61fc63a Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 4 Jun 2014 17:36:29 +0000 Subject: [PATCH] Minor Update git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-codelistmapping-import-widget@96703 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/CodelistMappingTableDetailCard.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/codelistmappingimportwidget/client/CodelistMappingTableDetailCard.java b/src/main/java/org/gcube/portlets/user/td/codelistmappingimportwidget/client/CodelistMappingTableDetailCard.java index 9246f03..f2096af 100644 --- a/src/main/java/org/gcube/portlets/user/td/codelistmappingimportwidget/client/CodelistMappingTableDetailCard.java +++ b/src/main/java/org/gcube/portlets/user/td/codelistmappingimportwidget/client/CodelistMappingTableDetailCard.java @@ -35,7 +35,7 @@ public class CodelistMappingTableDetailCard extends WizardCard { protected TextField name; protected TextArea description; - protected TextArea rights; + protected ResourceTD resourceDetails = new ResourceTD(); @@ -107,6 +107,7 @@ public class CodelistMappingTableDetailCard extends WizardCard { } protected void checkData() { + Log.debug("checkData()"); getWizardWindow().setEnableNextButton(false); getWizardWindow().setEnableBackButton(false); AlertMessageBox d; @@ -114,7 +115,7 @@ public class CodelistMappingTableDetailCard extends WizardCard { public void onHide(HideEvent event) { getWizardWindow().setEnableNextButton(true); - getWizardWindow().setEnableBackButton(false); + getWizardWindow().setEnableBackButton(true); } }; @@ -128,12 +129,12 @@ public class CodelistMappingTableDetailCard extends WizardCard { } else { name.setReadOnly(true); description.setReadOnly(true); - rights.setReadOnly(true); goNext(); } } protected void goNext() { + Log.debug("goNext()"); try { resourceDetails.setName(name.getCurrentValue()); resourceDetails.setDescription(description.getCurrentValue()); @@ -145,7 +146,7 @@ public class CodelistMappingTableDetailCard extends WizardCard { getWizardWindow().addCard(codelistMappingOperationInProgressCard); Log.info("NextCard CodelistMappingOperationInProgressCard"); getWizardWindow().nextCard(); - } catch (Exception e) { + } catch (Throwable e) { Log.error("sayNextCard :" + e.getLocalizedMessage()); } }