Class SelectManyCheckboxListRenderer
java.lang.Object
jakarta.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
com.sun.faces.renderkit.html_basic.MenuRenderer
com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer
- Direct Known Subclasses:
RadioRenderer
SelectManyCheckboxListRenderer is a class that renders the current value of
UISelectMany
component
as a list of checkboxes.-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
-
Field Summary
Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
EMPTY_PARAMS, logger
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeEnd
(FacesContext context, UIComponent component) Render the ending of the current state of the specifiedUIComponent
, following the rules described forencodeBegin()
to acquire the appropriate value to be rendered.protected boolean
isBehaviorSource
(FacesContext ctx, String behaviorSourceId, String componentClientId) We override isBehaviorSource since the ID of the activated check box will have been augmented with the option number.protected void
renderBeginText
(UIComponent component, int border, Boolean newTableRow, FacesContext context, boolean outerElement) protected void
renderEndText
(UIComponent component, Boolean newTableRow, FacesContext context) protected void
renderOption
(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) Methods inherited from class com.sun.faces.renderkit.html_basic.MenuRenderer
bestGuess, cloneValue, coerceToModelType, containsaValue, convertSelectManyValue, convertSelectManyValuesForArray, convertSelectManyValuesForCollection, convertSelectManyValuesForModel, convertSelectOneValue, createCollection, createCollectionFromHint, decode, encodeBegin, getConvertedValue, getCurrentSelectedValues, getMultipleText, getSubmittedSelectedValues, isHideNoSelection, isSelected, renderOption, renderOptions, renderSelect, writeDefaultSize
Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValue
Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
augmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
Methods inherited from class jakarta.faces.render.Renderer
encodeChildren
-
Constructor Details
-
SelectManyCheckboxListRenderer
public SelectManyCheckboxListRenderer()
-
-
Method Details
-
encodeEnd
Description copied from class:Renderer
Render the ending of the current state of the specified
UIComponent
, following the rules described forencodeBegin()
to acquire the appropriate value to be rendered.- Overrides:
encodeEnd
in classMenuRenderer
- Parameters:
context
-FacesContext
for the response we are creatingcomponent
-UIComponent
to be rendered- Throws:
IOException
- if an input/output error occurs while rendering
-
isBehaviorSource
protected boolean isBehaviorSource(FacesContext ctx, String behaviorSourceId, String componentClientId) We override isBehaviorSource since the ID of the activated check box will have been augmented with the option number.- Overrides:
isBehaviorSource
in classHtmlBasicRenderer
- Parameters:
ctx
- theFacesContext
for the current requestbehaviorSourceId
- the ID of the behavior sourcecomponentClientId
- the client ID of the component being decoded- Returns:
true
if the behavior source is for the component being decoded, otherwisefalse
- See Also:
-
renderBeginText
protected void renderBeginText(UIComponent component, int border, Boolean newTableRow, FacesContext context, boolean outerElement) throws IOException - Throws:
IOException
-
renderEndText
protected void renderEndText(UIComponent component, Boolean newTableRow, FacesContext context) throws IOException - Throws:
IOException
-
renderOption
protected void renderOption(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) throws IOException - Throws:
IOException
-