This commit is contained in:
Giancarlo Panichi 2015-03-30 15:47:19 +00:00
parent 071cf1fbe2
commit f675d9c37f
5 changed files with 32 additions and 9 deletions

View File

@ -40,6 +40,7 @@
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>

View File

@ -100,12 +100,7 @@
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
</dependency>
<!--
<dependency>
<groupId>javax.validation</groupId>
@ -347,4 +342,5 @@
</dependency>
</dependencies>
</dependencyManagement>
<packaging>war</packaging>
</project>

View File

@ -25,8 +25,8 @@
<!-- Specify the app entry point class. -->
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry'
/> -->
<entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry'
/>
<!-- Specify the paths for translatable code -->
<source path='client' />

View File

@ -40,6 +40,12 @@ public class ColumnTypeCodeStore implements Serializable {
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodes(TRId trId) {
store = new ArrayList<ColumnTypeCodeElement>();
if(trId==null|| trId.getTableTypeName()==null){
Log.debug("Attention no valid table type, trId:"+trId);
store.add(annotation);
return store;
}
if (trId.getTableTypeName().compareTo("Generic") == 0) {
store.add(annotation);
store.add(attribute);
@ -75,6 +81,12 @@ public class ColumnTypeCodeStore implements Serializable {
public static ArrayList<ColumnTypeCodeElement> getColumnTypeCodesForAddColumn(TRId trId) {
store = new ArrayList<ColumnTypeCodeElement>();
if(trId==null|| trId.getTableTypeName()==null){
Log.debug("Attention no valid table type, trId:"+trId);
store.add(annotation);
return store;
}
if (trId.getTableTypeName().compareTo("Generic") == 0) {
store.add(annotation);
store.add(attribute);

View File

@ -28,7 +28,21 @@
<!-- Specify the app entry point class. -->
<!-- <entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry' /> -->
<entry-point class='org.gcube.portlets.user.td.columnwidget.client.ColumnWidgetEntry' />
<set-property name="log_ConsoleLogger" value="ENABLED" />
<set-property name="log_DivLogger" value="ENABLED" />
<set-property name="log_GWTLogger" value="ENABLED" />
<set-property name="log_SystemLogger" value="ENABLED" />
<!--
<set-property name="log_ConsoleLogger" value="DISABLED" />
<set-property name="log_DivLogger" value="DISABLED" />
<set-property name="log_GWTLogger" value="DISABLED" />
<set-property name="log_SystemLogger" value="DISABLED" /> -->
<!-- Specify the paths for translatable code -->
<source path='client' />