提交 b58e19b0 编写于 作者: J Juergen Hoeller

polishing

上级 48869a86
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册