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:
parent
b2c4765953
commit
1454e132e5
|
@ -152,13 +152,21 @@ 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 {
|
||||
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 {
|
||||
|
@ -168,6 +176,8 @@ public class CSVTableDetailCard extends WizardCard {
|
|||
goNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void goNext() {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue