checkForCommandFacet(input, facesContext, writer);
int maxLength = -1;
for (Validator validator : input.getValidators()) {
if (validator instanceof LengthValidator) {
LengthValidator lengthValidator = (LengthValidator) validator;
maxLength = lengthValidator.getMaximum();
}
}
boolean required = ComponentUtil.getBooleanAttribute(input, TobagoConstants.ATTR_REQUIRED);
if (required || maxLength > 0) {
String rendererName = HtmlRendererUtil.getRendererName(facesContext, input);