Top Description Fields Constructors Methods
com.sun.faces.renderkit.html_basic

public Class SelectManyCheckboxListRenderer

extends MenuRenderer
Class Inheritance
Known Direct Subclasses
com.sun.faces.renderkit.html_basic.RadioRenderer
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE

SelectManyCheckboxListRenderer is a class that renders the current value of UISelectMany component as a list of checkboxes.

Field Summary

Modifier and TypeField and Description
private static final Attribute[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
encodeEnd(FacesContext
FacesContext for the response we are creating
context
,
UIComponent
UIComponent to be rendered
component
)

Overrides com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd.

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.

pack-priv String
protected boolean
isBehaviorSource(FacesContext
the FacesContext for the current request
ctx
,
String
the ID of the behavior source
behaviorSourceId
,
String
the client ID of the component being decoded
componentClientId
)

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

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<T> converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo)

Inherited from com.sun.faces.renderkit.html_basic.MenuRenderer:
bestGuesscloneValuecoerceToModelTypecontainsaValueconvertSelectManyValueconvertSelectManyValuesForArrayconvertSelectManyValuesForCollectionconvertSelectManyValuesForModelconvertSelectOneValuecreateCollectioncreateCollectionFromHintdecodeencodeBegingetConvertedValuegetCurrentSelectedValuesgetMultipleTextgetSizeAttributegetSubmittedSelectedValuesisHideNoSelectionisSelectedrenderOptionrenderOptionsrenderSelectwriteDefaultSize

Field Detail

ATTRIBUTESback to summary
private static final Attribute[] ATTRIBUTES

Hides com.sun.faces.renderkit.html_basic.MenuRenderer.ATTRIBUTES.

Constructor Detail

SelectManyCheckboxListRendererback to summary
public SelectManyCheckboxListRenderer()

Method Detail

encodeEndback to summary
public void encodeEnd(FacesContext context, UIComponent component) throws IOException

Overrides com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd.

Doc from jakarta.faces.render.Renderer.encodeEnd.

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.

Parameters
context:FacesContext

FacesContext for the response we are creating

component:UIComponent

UIComponent to be rendered

Annotations
@Override
Exceptions
IOException:
if an input/output error occurs while rendering
getSelectedTextStringback to summary
pack-priv String getSelectedTextString()
isBehaviorSourceback to summary
protected boolean isBehaviorSource(FacesContext ctx, String behaviorSourceId, String componentClientId)

Overrides com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

We override isBehaviorSource since the ID of the activated check box will have been augmented with the option number.

Parameters
ctx:FacesContext

Doc from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

the FacesContext for the current request

behaviorSourceId:String

Doc from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

the ID of the behavior source

componentClientId:String

Doc from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

the client ID of the component being decoded

Returns:boolean

Doc from com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.isBehaviorSource.

true if the behavior source is for the component being decoded, otherwise false

Annotations
@Override
See Also
HtmlBasicRenderer#isBehaviorSource(FacesContext, String, String)
renderBeginTextback to summary
protected void renderBeginText(UIComponent component, int border, Boolean newTableRow, FacesContext context, boolean outerElement) throws IOException
renderEndTextback to summary
protected void renderEndText(UIComponent component, Boolean newTableRow, FacesContext context) throws IOException
renderOptionback to summary
protected void renderOption(FacesContext context, UIComponent component, Converter<T> converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, Boolean newTableRow, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) throws IOException