[Yanel-commits] rev 56289 - public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags

michi at wyona.com michi at wyona.com
Tue Jan 25 17:00:05 CET 2011


Author: michi
Date: 2011-01-25 17:00:05 +0100 (Tue, 25 Jan 2011)
New Revision: 56289

Modified:
   public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/TextFieldTag.java
Log:
javadoc added and better log statement

Modified: public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/TextFieldTag.java
===================================================================
--- public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/TextFieldTag.java	2011-01-25 15:59:57 UTC (rev 56288)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/TextFieldTag.java	2011-01-25 16:00:05 UTC (rev 56289)
@@ -9,19 +9,29 @@
 
 import org.apache.log4j.Logger;
 
+/**
+ *
+ */
 public class TextFieldTag extends YanelTag {
+
     private static Logger log = Logger.getLogger(TextFieldTag.class);
     private ResourceInputItem item = null;
-    
+
+    /**
+     * INFO: It seems like this method is somehow dynamically called by ConvertingWrapDynaBean.set(String,Object)
+     */
     public void setItem(TextualInputItemSupport resourceInputItem) {
         this.item = resourceInputItem;
         if (item != null) {
             log.debug("Item name: " + item.getName() + ", Item value: " + item.getValue()); 
         } else {
-            log.error("Item is null!");
+            log.error("Text field item is null! Please make sure that your creatable/modifiable resource-type and corresponding jelly file are using the same item names.");
         }
     }
-    
+
+    /**
+     * @see org.apache.commons.jelly.Tag#doTag(XMLOutput)
+     */
     public void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException {
         try {
             AttributesImpl attributes = new AttributesImpl();



More information about the Yanel-commits mailing list