Fixed dimension of panel

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@84243 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-10-25 12:16:22 +00:00
parent dd07f69e66
commit 10b5e80ddb
2 changed files with 8 additions and 5 deletions

View File

@ -34,7 +34,7 @@ public class CSVTableDetailCard extends WizardCard {
protected final String TABLEDETAILPANELWIDTH = "100%";
protected final String TABLEDETAILPANELHEIGHT = "100%";
protected final String FORMWIDTH = "460px";
protected final String FORMWIDTH = "538px";
protected CSVImportSession importSession;
protected CSVTableDetailCard thisCard;
@ -112,10 +112,10 @@ public class CSVTableDetailCard extends WizardCard {
}
protected void checkData() {
if (name.getValue() == null || name.getValue().isEmpty()
if (name.getValue() == null || name.getValue().isEmpty()||!name.isValid()
|| description.getValue() == null
|| description.getValue().isEmpty()
|| rights.getValue() == null || rights.getValue().isEmpty()
|| description.getValue().isEmpty()||!description.isValid()
|| rights.getValue() == null || rights.getValue().isEmpty()||!rights.isValid()
) {
AlertMessageBox d = new AlertMessageBox("Attention!",

View File

@ -3,6 +3,8 @@
*/
package org.gcube.portlets.user.td.csvimportwidget.client;
import java.io.File;
import org.gcube.portlets.user.td.csvimportwidget.client.general.WizardCard;
import org.gcube.portlets.user.td.csvimportwidget.client.progress.FileUploadProgressBarUpdater;
import org.gcube.portlets.user.td.csvimportwidget.client.progress.FileUploadProgressListener;
@ -96,7 +98,8 @@ public class FileUploadPanel extends FormPanel {
public void onChange(ChangeEvent event) {
uploadButton.setEnabled(fileUploadField.isValid());
String filename=fileUploadField.getValue();
importSession.setLocalFileName(filename);
java.io.File file=new File(filename);
importSession.setLocalFileName(file.getName());
}
});