Sync tag with main ftl template. (#1212)

Co-authored-by: Greg Huber <ghuber@apache.org>
This commit is contained in:
gregh3269
2025-03-04 15:45:45 +00:00
committed by GitHub
parent 6bb71caa90
commit f35c808efc
@@ -68,14 +68,15 @@ public class CheckboxListHandler extends AbstractTagHandler implements TagGenera
.addIfTrue("checked", isChecked(params, itemKeyStr))
.addIfTrue("readonly", params.get("readonly")).addIfTrue("disabled", disabled)
.addIfExists("tabindex", params.get("tabindex"))
.addIfExists("id", id + "-" + Integer.toString(cnt));
.addIfExists("id", id + "-" + Integer.toString(cnt))
.addIfExists("class", params.get("cssClass"))
.addIfExists("style", params.get("cssStyle"));
start("input", a);
end("input");
// Label section
a = new Attributes();
a.add("for", id + "-" + Integer.toString(cnt)).addIfExists("class", params.get("cssClass"))
.addIfExists("style", params.get("cssStyle"));
a.add("for", id + "-" + Integer.toString(cnt)).add("class", "checkboxLabel");
super.start("label", a);
if (StringUtils.isNotEmpty(itemValueStr))
characters(itemValueStr);