public class SelectManyCheckboxListRenderer extends MenuRenderer
UISelectMany component
as a list of checkboxes.HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.ParamEMPTY_PARAMS, logger| Constructor and Description |
|---|
SelectManyCheckboxListRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.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(jakarta.faces.context.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(jakarta.faces.component.UIComponent component,
int border,
boolean alignVertical,
jakarta.faces.context.FacesContext context,
boolean outerTable) |
protected void |
renderEndText(jakarta.faces.component.UIComponent component,
boolean alignVertical,
jakarta.faces.context.FacesContext context) |
protected void |
renderOption(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component,
jakarta.faces.convert.Converter converter,
jakarta.faces.model.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, writeDefaultSizegetNonOnChangeBehaviors, getNonOnClickSelectBehaviors, getValue, setSubmittedValueaugmentIdReference, convertClientId, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, rendererParamsNotNull, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessarypublic void encodeEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component)
throws IOException
jakarta.faces.render.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 MenuRenderercontext - FacesContext for the response we are creatingcomponent - UIComponent to be renderedIOException - if an input/output error occurs while renderingprotected boolean isBehaviorSource(jakarta.faces.context.FacesContext ctx,
String behaviorSourceId,
String componentClientId)
isBehaviorSource in class HtmlBasicRendererctx - 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 falseHtmlBasicRenderer.isBehaviorSource(FacesContext, String, String)protected void renderBeginText(jakarta.faces.component.UIComponent component,
int border,
boolean alignVertical,
jakarta.faces.context.FacesContext context,
boolean outerTable)
throws IOException
IOExceptionprotected void renderEndText(jakarta.faces.component.UIComponent component,
boolean alignVertical,
jakarta.faces.context.FacesContext context)
throws IOException
IOExceptionprotected void renderOption(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent component,
jakarta.faces.convert.Converter converter,
jakarta.faces.model.SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
boolean alignVertical,
int itemNumber,
HtmlBasicRenderer.OptionComponentInfo optionInfo)
throws IOException
IOExceptionCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.