Class HtmlCheckboxRendererBase
- java.lang.Object
-
- jakarta.faces.render.Renderer
-
- org.apache.myfaces.renderkit.html.base.HtmlRenderer
-
- org.apache.myfaces.renderkit.html.base.HtmlCheckboxRendererBase
-
- Direct Known Subclasses:
HtmlCheckboxRenderer
public class HtmlCheckboxRendererBase extends HtmlRenderer
-
-
Field Summary
-
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
-
Constructor Summary
Constructors Constructor Description HtmlCheckboxRendererBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(FacesContext facesContext, UIComponent component)
void
encodeBegin(FacesContext facesContext, UIComponent uiComponent)
void
encodeEnd(FacesContext facesContext, UIComponent uiComponent)
Object
getConvertedValue(FacesContext facesContext, UIComponent component, Object submittedValue)
protected Converter
getConverter(FacesContext facesContext, UIComponent component)
Gets the converter for the given component rendered by this renderer.protected String
getLayout(UISelectMany selectMany)
protected boolean
isDisabled(FacesContext facesContext, UIComponent component)
protected String
renderCheckbox(FacesContext facesContext, UIComponent uiComponent, String value, boolean disabled, boolean checked, boolean renderId, Integer itemNum)
Renders the input itemvoid
renderCheckboxList(FacesContext facesContext, UISelectMany selectMany)
protected int
renderGroupOrItemCheckbox(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, boolean useSubmittedValues, Set lookupSet, Converter converter, Boolean usingTable, Integer itemNum)
-
Methods inherited from class org.apache.myfaces.renderkit.html.base.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, renderId, shouldRenderId
-
Methods inherited from class jakarta.faces.render.Renderer
convertClientId, encodeChildren, getRendersChildren
-
-
-
-
Method Detail
-
encodeBegin
public void encodeBegin(FacesContext facesContext, UIComponent uiComponent) throws IOException
- Overrides:
encodeBegin
in classRenderer
- Throws:
IOException
-
encodeEnd
public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException
- Overrides:
encodeEnd
in classRenderer
- Throws:
IOException
-
renderCheckboxList
public void renderCheckboxList(FacesContext facesContext, UISelectMany selectMany) throws IOException
- Throws:
IOException
-
getLayout
protected String getLayout(UISelectMany selectMany)
-
renderGroupOrItemCheckbox
protected int renderGroupOrItemCheckbox(FacesContext facesContext, UIComponent uiComponent, SelectItem selectItem, boolean useSubmittedValues, Set lookupSet, Converter converter, Boolean usingTable, Integer itemNum) throws IOException
- Throws:
IOException
-
renderCheckbox
protected String renderCheckbox(FacesContext facesContext, UIComponent uiComponent, String value, boolean disabled, boolean checked, boolean renderId, Integer itemNum) throws IOException
Renders the input item- Returns:
- the 'id' value of the rendered element
- Throws:
IOException
-
isDisabled
protected boolean isDisabled(FacesContext facesContext, UIComponent component)
-
decode
public void decode(FacesContext facesContext, UIComponent component)
-
getConvertedValue
public Object getConvertedValue(FacesContext facesContext, UIComponent component, Object submittedValue) throws ConverterException
- Overrides:
getConvertedValue
in classRenderer
- Throws:
ConverterException
-
getConverter
protected Converter getConverter(FacesContext facesContext, UIComponent component)
Gets the converter for the given component rendered by this renderer.- Parameters:
facesContext
-component
-- Returns:
-
-