Skip to content

Commit

Permalink
WW-4801 Only one hidden field per checkboxlist.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregh3269 committed May 30, 2017
1 parent 2fb431d commit 46153e7
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ public void generate() throws IOException {
characters(itemValueStr);
super.end("label");

// Hidden input section
a = new Attributes();
a.add("type", "hidden")
.add("id",
"__multiselect_"
+ StringUtils.defaultString(StringEscapeUtils.escapeHtml4(id)))
.add("name",
"__multiselect_"
+ StringUtils.defaultString(StringEscapeUtils.escapeHtml4(name)))
.add("value", "").addIfTrue("disabled", disabled);
start("input", a);
end("input");

stack.pop();
cnt++;
}

// Hidden input section
Attributes a = new Attributes();
a.add("type", "hidden")
.add("id",
"__multiselect_"
+ StringUtils.defaultString(StringEscapeUtils.escapeHtml4(id)))
.add("name",
"__multiselect_"
+ StringUtils.defaultString(StringEscapeUtils.escapeHtml4(name)))
.add("value", "").addIfTrue("disabled", disabled);
start("input", a);
end("input");
}
}

Expand Down

0 comments on commit 46153e7

Please sign in to comment.