public class SelectManyCheckboxListRenderer extends MenuRenderer
UISelectMany component as a list of checkboxes.
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
EMPTY_PARAMS, logger
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
SelectManyCheckboxListRenderer() |
Modifier and Type | Method and 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) |
bestGuess, cloneValue, coerceToModelType, containsaValue, convertSelectManyValue, convertSelectManyValuesForArray, convertSelectManyValuesForCollection, convertSelectManyValuesForModel, convertSelectOneValue, createCollection, createCollectionFromHint, decode, encodeBegin, getConvertedValue, getCurrentSelectedValues, getMultipleText, getSubmittedSelectedValues, isHideNoSelection, isSelected, renderOption, renderOptions, renderSelect, writeDefaultSize
getNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValue
augmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
encodeChildren
public void encodeEnd(FacesContext context, UIComponent component) throws IOException
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.
encodeEnd
in class MenuRenderer
context
- FacesContext
for the response we are creatingcomponent
- UIComponent
to be renderedIOException
- if an input/output error occurs while renderingprotected boolean isBehaviorSource(FacesContext ctx, String behaviorSourceId, String componentClientId)
isBehaviorSource
in class HtmlBasicRenderer
ctx
- the FacesContext
for the current requestbehaviorSourceId
- the ID of the behavior sourcecomponentClientId
- the client ID of the component being decodedtrue
if the behavior source is for the component being
decoded, otherwise false
HtmlBasicRenderer.isBehaviorSource(FacesContext, String, String)
protected void renderBeginText(UIComponent component, int border, boolean alignVertical, FacesContext context, boolean outerTable) throws IOException
IOException
protected void renderEndText(UIComponent component, boolean alignVertical, FacesContext context) throws IOException
IOException
protected void renderOption(FacesContext context, UIComponent component, Converter converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, boolean alignVertical, int itemNumber, HtmlBasicRenderer.OptionComponentInfo optionInfo) throws IOException
IOException
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.