{ log.error("Invalid parent component for "+getClass().getName());
return;
}
ControlTag controlTag = (ControlTag)parent;
InputControl control = controlTag.control;
InputControl.ValueInfo valInfo = controlTag.inpInfo;
TagEncodingHelper helper = controlTag.helper;
if (control==null)
control = helper.getInputControl(); // Oops, should not come here
if (valInfo==null)
valInfo = helper.getValueInfo(context); // Oops, should not come here
String styleClass = helper.getTagStyleClass("eInpDis");
String tooltip = helper.getValueTooltip(helper.getTagAttributeString("title"));
// render components
ResponseWriter writer = context.getResponseWriter();
writer.startElement(tagName, this);
if (StringUtils.isNotEmpty(styleClass))
writer.writeAttribute("class", styleClass, null);
if (StringUtils.isNotEmpty(tooltip))
writer.writeAttribute("title", tooltip, null);
// render Value
control.renderValue(valInfo, writer);
writer.endElement(tagName);
}