protected void renderAccessibilityAttributes(FacesContext context, UIInput component, boolean disabled, boolean readonly) throws IOException { ResponseWriter writer = context.getResponseWriter(); renderARIARequired(context, component); renderARIAInvalid(context, component); String labelledBy = (String) component.getAttributes().get("labelledby"); if (labelledBy != null) { writer.writeAttribute(HTML.ARIA_LABELLEDBY, labelledBy, null); } if (disabled) { writer.writeAttribute("disabled", "disabled", null); writer.writeAttribute(HTML.ARIA_DISABLED, "true", null); } if (readonly) { writer.writeAttribute("readonly", "readonly", null); writer.writeAttribute(HTML.ARIA_READONLY, "true", null); } }