added geojson type at client side. Validation will be performed at server side anyway (yet to be implemented)

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@147131 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-04-25 14:01:17 +00:00
parent 05846cd989
commit fa8d07ec3c
2 changed files with 5 additions and 3 deletions

View File

@ -1380,8 +1380,7 @@ public class CreateDatasetForm extends Composite{
}
/**
* Disable dataset editable fields once the dataset has been
* Successfully created.
* Disable dataset editable fields once the dataset has been successfully created.
*/
protected void disableDatasetFields() {

View File

@ -116,6 +116,7 @@ public class MetaDataFieldSkeleton extends Composite{
((CheckBox)holder).setValue(Boolean.valueOf(field.getDefaultValue()));
break;
case GeoJSON:
case Text:
holder = new TextArea();
@ -352,6 +353,7 @@ public class MetaDataFieldSkeleton extends Composite{
return null;
case Text:
case GeoJSON: // validation for geojson will be performed at server side as well TODO
String textAreaValue = getFieldCurrentValue();
@ -510,7 +512,7 @@ public class MetaDataFieldSkeleton extends Composite{
break;
case Text:
case GeoJSON:
toReturn = ((TextArea)holder).getText();
break;
@ -609,6 +611,7 @@ public class MetaDataFieldSkeleton extends Composite{
((CheckBox)holder).setEnabled(false);
break;
case GeoJSON:
case Text:
((TextArea)holder).setEnabled(false);