arron 2002/10/23 11:54:49 Modified: src/share/org/apache/struts/taglib/html CheckboxTag.java Log: Bug 13189. Allowing the checking state of a checkbox to be defined by the value rather than our pre-defined list of "on" values. Reported and fixed by Saxon D'Aubin. Revision Changes Path 1.14 +6 -5 jakarta-struts/src/share/org/apache/struts/taglib/html/CheckboxTag.java Index: CheckboxTag.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/html/CheckboxTag.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- CheckboxTag.java 21 Oct 2002 22:30:22 -0000 1.13 +++ CheckboxTag.java 23 Oct 2002 18:54:49 -0000 1.14 @@ -211,7 +211,8 @@ if (!(result instanceof String)) result = result.toString(); String checked = (String) result; - if (checked.equalsIgnoreCase("true") + if (checked.equalsIgnoreCase(value) + || checked.equalsIgnoreCase("true") || checked.equalsIgnoreCase("yes") || checked.equalsIgnoreCase("on")) results.append(" checked=\"checked\"");
-- To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>