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
This commit is contained in:
Giancarlo Panichi 2014-06-04 17:36:29 +00:00
parent 6737f749e3
commit 7bc6b97d25
1 changed files with 5 additions and 4 deletions

View File

@ -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());
}
}