public abstract class InputRenderer extends CoreRenderer
Constructor and Description |
---|
InputRenderer() |
Modifier and Type | Method and Description |
---|---|
Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object submittedValue) |
protected boolean |
isDisabled(javax.faces.component.UIInput component) |
protected boolean |
isReadOnly(javax.faces.component.UIInput component) |
protected void |
renderAccessibilityAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIInput component)
Adds the following accessibility attributes to an HTML DOM element.
|
protected void |
renderAccessibilityAttributes(javax.faces.context.FacesContext context,
javax.faces.component.UIInput component,
boolean disabled,
boolean readonly) |
protected void |
renderARIACombobox(javax.faces.context.FacesContext context,
javax.faces.component.UIInput component)
Adds ARIA attributes if the component is "role=combobox".
|
protected void |
renderARIAInvalid(javax.faces.context.FacesContext context,
javax.faces.component.UIInput component)
Adds "aria-invalid" if the component is invalid.
|
protected void |
renderARIARequired(javax.faces.context.FacesContext context,
javax.faces.component.UIInput component)
Adds "aria-required" if the component is required.
|
<T extends javax.faces.component.UIComponent & RTLAware> |
renderRTLDirection(javax.faces.context.FacesContext context,
T component) |
protected boolean |
shouldDecode(javax.faces.component.UIInput component) |
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, escapeText, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getWidgetBuilder, isGrouped, isValueBlank, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
public Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object submittedValue) throws javax.faces.convert.ConverterException
getConvertedValue
in class javax.faces.render.Renderer
javax.faces.convert.ConverterException
protected boolean isDisabled(javax.faces.component.UIInput component)
protected boolean isReadOnly(javax.faces.component.UIInput component)
protected boolean shouldDecode(javax.faces.component.UIInput component)
public <T extends javax.faces.component.UIComponent & RTLAware> void renderRTLDirection(javax.faces.context.FacesContext context, T component) throws IOException
IOException
protected void renderARIARequired(javax.faces.context.FacesContext context, javax.faces.component.UIInput component) throws IOException
context
- the FacesContext
component
- the UIInput
component to add attributes forIOException
- if any error occurs writing the responseprotected void renderARIAInvalid(javax.faces.context.FacesContext context, javax.faces.component.UIInput component) throws IOException
context
- the FacesContext
component
- the UIInput
component to add attributes forIOException
- if any error occurs writing the responseprotected void renderAccessibilityAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIInput component) throws IOException
"aria-required" if the component is required "aria-invalid" if the component is invalid "aria-labelledby" if the component has a labelledby attribute "disabled" and "aria-disabled" if the component is disabled "readonly" and "aria-readonly" if the component is readonly
context
- the FacesContext
component
- the UIInput
component to add attributes forIOException
- if any error occurs writing the responseprotected void renderAccessibilityAttributes(javax.faces.context.FacesContext context, javax.faces.component.UIInput component, boolean disabled, boolean readonly) throws IOException
IOException
protected void renderARIACombobox(javax.faces.context.FacesContext context, javax.faces.component.UIInput component) throws IOException
context
- the FacesContext
component
- the UIInput
component to add attributes forIOException
- if any error occurs writing the responsehttps://www.w3.org/TR/wai-aria-practices/#combobox
Copyright © 2019. All rights reserved.