polishing

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3600 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2010-08-16 20:39:28 +00:00
parent 71c052155e
commit 162a2b535a
1 changed files with 2 additions and 2 deletions

View File

@ -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() {