[Yanel-commits] rev 45279 -
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags
michi at wyona.com
michi at wyona.com
Mon Nov 2 14:50:21 CET 2009
Author: michi
Date: 2009-11-02 14:50:20 +0100 (Mon, 02 Nov 2009)
New Revision: 45279
Modified:
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java
Log:
attribute value fixed and notes added
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-02 11:11:09 UTC (rev 45278)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java 2009-11-02 13:50:20 UTC (rev 45279)
@@ -31,13 +31,15 @@
attributes.addAttribute(XHTML_NAMESPACE, "", "type", "CDATA", "checkbox");
attributes.addAttribute(XHTML_NAMESPACE, "", "name", "CDATA", item.getName());
attributes.addAttribute(XHTML_NAMESPACE, "", "value", "CDATA", selection[i].getValue());
+
+ // NOTE: Allow checking upon creation
if (selection[i].getValue().equals("true")) {
log.debug("Checked!");
- attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "true");
+ attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "checked");
} else {
log.debug("NOT Checked!");
}
-
+ // NOTE: If checked during filling out the form
if (isSelected(selection[i])) {
attributes.addAttribute(XHTML_NAMESPACE, "", "checked", "CDATA", "checked");
}
More information about the Yanel-commits
mailing list