Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@99160 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-07-31 13:29:28 +00:00
parent b2c4765953
commit 1454e132e5
1 changed files with 21 additions and 11 deletions

View File

@ -152,20 +152,30 @@ public class CSVTableDetailCard extends WizardCard {
};
if (name.getValue() == null || name.getValue().isEmpty()
|| !name.isValid() || description.getValue() == null
|| description.getValue().isEmpty() || !description.isValid()
|| rights.getValue() == null || rights.getValue().isEmpty()
|| !rights.isValid()
) {
d = new AlertMessageBox("Attention!", "Fill in all fields");
|| !name.isValid()) {
d = new AlertMessageBox("Attention!", "Fill in name field");
d.addHideHandler(hideHandler);
d.show();
} else {
name.setReadOnly(true);
description.setReadOnly(true);
rights.setReadOnly(true);
goNext();
if (description.getValue() == null
|| description.getValue().isEmpty()
|| !description.isValid()) {
d = new AlertMessageBox("Attention!", "Fill in description field");
d.addHideHandler(hideHandler);
d.show();
} else {
if (rights.getValue() == null || rights.getValue().isEmpty()
|| !rights.isValid()) {
d = new AlertMessageBox("Attention!", "Fill in rights field");
d.addHideHandler(hideHandler);
d.show();
} else {
name.setReadOnly(true);
description.setReadOnly(true);
rights.setReadOnly(true);
goNext();
}
}
}
}