polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3600 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
71c052155e
commit
162a2b535a
|
|
@ -151,7 +151,7 @@ public class OptionTag extends AbstractHtmlElementBodyTag implements BodyTag {
|
|||
protected void renderDefaultContent(TagWriter tagWriter) throws JspException {
|
||||
Object value = this.pageContext.getAttribute(VALUE_VARIABLE_NAME);
|
||||
String label = getLabelValue(value);
|
||||
renderOption(value, label, tagWriter);
|
||||
renderOption(value, label, tagWriter);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -232,7 +232,7 @@ public class OptionTag extends AbstractHtmlElementBodyTag implements BodyTag {
|
|||
private String getLabelValue(Object resolvedValue) throws JspException {
|
||||
String label = getLabel();
|
||||
Object labelObj = (label == null ? resolvedValue : evaluate("label", label));
|
||||
return getDisplayString(labelObj, getBindStatus().getEditor());
|
||||
return getDisplayString(labelObj, getBindStatus().getEditor());
|
||||
}
|
||||
|
||||
private void assertUnderSelectTag() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue