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(javax.faces.context.FacesContext context,
javax.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(javax.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(javax.faces.component.UIComponent component,
int border,
boolean alignVertical,
javax.faces.context.FacesContext context,
boolean outerTable) |
protected void |
renderEndText(javax.faces.component.UIComponent component,
boolean alignVertical,
javax.faces.context.FacesContext context) |
protected void |
renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
javax.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(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
javax.faces.render.RendererRender 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(javax.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(javax.faces.component.UIComponent component,
int border,
boolean alignVertical,
javax.faces.context.FacesContext context,
boolean outerTable)
throws IOException
IOExceptionprotected void renderEndText(javax.faces.component.UIComponent component,
boolean alignVertical,
javax.faces.context.FacesContext context)
throws IOException
IOExceptionprotected void renderOption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.Converter converter,
javax.faces.model.SelectItem curItem,
Object currentSelections,
Object[] submittedValues,
boolean alignVertical,
int itemNumber,
HtmlBasicRenderer.OptionComponentInfo optionInfo)
throws IOException
IOExceptionCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.