Module jakarta.faces
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, loggerFields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeEnd(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 booleanisBehaviorSource(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 voidrenderBeginText(UIComponent component, int border, Boolean newTableRow, FacesContext context, boolean outerElement) protected voidrenderEndText(UIComponent component, Boolean newTableRow, FacesContext context) protected voidrenderOption(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, writeDefaultSizeMethods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer
getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValueMethods 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, writeIdAttributeIfNecessaryMethods inherited from class jakarta.faces.render.Renderer
encodeChildren
-
Constructor Details
-
SelectManyCheckboxListRenderer
public SelectManyCheckboxListRenderer()
-
-
Method Details
-
encodeEnd
Description copied from class:RendererRender the ending of the current state of the specified
UIComponent, following the rules described forencodeBegin()to acquire the appropriate value to be rendered.- Overrides:
encodeEndin classMenuRenderer- Parameters:
context-FacesContextfor the response we are creatingcomponent-UIComponentto 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:
isBehaviorSourcein classHtmlBasicRenderer- Parameters:
ctx- theFacesContextfor the current requestbehaviorSourceId- the ID of the behavior sourcecomponentClientId- the client ID of the component being decoded- Returns:
trueif 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
-