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
public class SelectManyCheckboxListRenderer extends MenuRenderer
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
-
Constructor Summary
Constructors
Constructor
Description
SelectManyCheckboxListRenderer()
-
Method Summary
Modifier and Type
Method
Description
void
encodeEnd(FacesContext context,
UIComponent component)
Render the ending of the current state of the specified UIComponent
, following the rules described for
encodeBegin()
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 alignVertical,
FacesContext context,
boolean outerTable)
protected void
renderEndText(UIComponent component,
boolean alignVertical,
FacesContext context)
protected void
renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
boolean alignVertical,
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
-
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 for
encodeBegin()
to acquire the appropriate value to be rendered.
- Overrides:
encodeEnd
in class MenuRenderer
- Parameters:
context
- FacesContext
for the response we are creating
component
- 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 class HtmlBasicRenderer
- Parameters:
ctx
- the FacesContext
for the current request
behaviorSourceId
- the ID of the behavior source
componentClientId
- the client ID of the component being decoded
- Returns:
true
if the behavior source is for the component being decoded, otherwise false
- See Also:
HtmlBasicRenderer.isBehaviorSource(FacesContext, String, String)
-
renderBeginText
protected void renderBeginText(UIComponent component,
int border,
boolean alignVertical,
FacesContext context,
boolean outerTable)
throws IOException
- Throws:
IOException
-
renderEndText
protected void renderEndText(UIComponent component,
boolean alignVertical,
FacesContext context)
throws IOException
- Throws:
IOException
-
renderOption
protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
boolean alignVertical,
int itemNumber,
HtmlBasicRenderer.OptionComponentInfo optionInfo)
throws IOException
- Throws:
IOException