mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
Sync tag with main ftl template. (#1212)
Co-authored-by: Greg Huber <ghuber@apache.org>
This commit is contained in:
+4
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user