code: protected void renderARIAInvalid(FacesContext context, UIInput component) throws IOException {
          if (!component.isValid()) {
              ResponseWriter writer = context.getResponseWriter();
              writer.writeAttribute(HTML.ARIA_INVALID, "true", null);
          }
      }
docs: Adds "aria-invalid" if the component is invalid.
  
  @param context the {@link FacesContext}
  @param component the {@link UIInput} component to add attributes for
  @throws IOException if any error occurs writing the response