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

guillaume at wyona.com guillaume at wyona.com
Wed Nov 4 13:36:56 CET 2009


Author: guillaume
Date: 2009-11-04 13:36:56 +0100 (Wed, 04 Nov 2009)
New Revision: 45299

Modified:
   public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java
Log:
Fixed swapped comments, readded logging from r45279.


Modified: public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java
===================================================================
--- public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java	2009-11-04 10:19:43 UTC (rev 45298)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java	2009-11-04 12:36:56 UTC (rev 45299)
@@ -32,10 +32,13 @@
                 attributes.addAttribute(XHTML_NAMESPACE, "", "name", "CDATA", item.getName());
                 attributes.addAttribute(XHTML_NAMESPACE, "", "value", "CDATA", selection[i].getValue());
 
-                if (isSelected(selection[i]) // checked upon creation
-                || selection[i].getValue().equals("true") // checked during filling out the form
+                if (isSelected(selection[i]) // checked during filling out the form
+                || selection[i].getValue().equals("true") // checked upon creation
                 ) {
+                    log.debug("Checked!");
                     attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "checked");
+                } else {
+                    log.debug("NOT Checked!");
                 }
 
                 out.startElement("input", attributes);



More information about the Yanel-commits mailing list