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

michi at wyona.com michi at wyona.com
Sun Oct 25 00:34:46 CEST 2009


Author: michi
Date: 2009-10-25 00:34:45 +0200 (Sun, 25 Oct 2009)
New Revision: 45177

Modified:
   public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java
Log:
checked attribute fixed

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-10-24 22:33:38 UTC (rev 45176)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java	2009-10-24 22:34:45 UTC (rev 45177)
@@ -31,6 +31,12 @@
                 attributes.addAttribute(XHTML_NAMESPACE, "", "type", "CDATA", "checkbox");
                 attributes.addAttribute(XHTML_NAMESPACE, "", "name", "CDATA", item.getName());
                 attributes.addAttribute(XHTML_NAMESPACE, "", "value", "CDATA", selection[i].getValue());
+                if (selection[i].getValue().equals("true")) {
+                    log.debug("Checked!");
+                    attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "true");
+                } else {
+                    log.debug("NOT Checked!");
+                }
                 
                 if (isSelected(selection[i])) {
                     attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "checked");



More information about the Yanel-commits mailing list