[Yanel-commits] rev 43735 -
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly
michi at wyona.com
michi at wyona.com
Tue Jul 21 14:19:37 CEST 2009
Author: michi
Date: 2009-07-21 14:19:37 +0200 (Tue, 21 Jul 2009)
New Revision: 43735
Modified:
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/TextualInputItemSupport.java
Log:
exception messsage improved
Modified: public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/TextualInputItemSupport.java
===================================================================
--- public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/TextualInputItemSupport.java 2009-07-21 12:06:48 UTC (rev 43734)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/TextualInputItemSupport.java 2009-07-21 12:19:37 UTC (rev 43735)
@@ -24,13 +24,16 @@
return this.value;
}
+ /**
+ * Set value
+ */
public void doSetValue(Object value) {
if(value == null){
this.value = null;
return;
}
- if (!(value instanceof String)) throw new IllegalArgumentException("Passed argument is not a string: " + value.toString());
+ if (!(value instanceof String)) throw new IllegalArgumentException("Value of input item '" + name + "' is not a string: " + value.toString());
if( "".equals(((String)value).trim())){
value = null;
@@ -38,5 +41,4 @@
this.value = (String)value;
}
-
}
More information about the Yanel-commits
mailing list