consistent converting and escaping of label values (following AbstractMultiCheckedElementTag's SPR-7174)

master
Juergen Hoeller 14 years ago
parent a032ce12cb
commit 48869a86cc
  1. 4
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/AbstractSingleCheckedElementTag.java

@ -1,5 +1,5 @@
/*
* Copyright 2002-2008 the original author or authors.
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -90,7 +90,7 @@ public abstract class AbstractSingleCheckedElementTag extends AbstractCheckedEle
if (resolvedLabel != null) {
tagWriter.startTag("label");
tagWriter.writeAttribute("for", id);
tagWriter.appendValue(resolvedLabel.toString());
tagWriter.appendValue(convertToDisplayString(resolvedLabel));
tagWriter.endTag();
}

Loading…
Cancel
Save