UISelectOne or UISelectMany
component as a list of menu options.
| Modifier and Type | Field and Description |
|---|---|
| private static final Attribute[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Collection | Returns: aCollection instance that best matches typethe target model type type, int the initial size of the initialSize)Collection
|
| protected Collection | Returns: the result of invokingclone() or null if the value could not be cloned or does not
implement the Cloneable interfacethe value to clone value)
Utility method to invoke the the |
| protected Object | |
| protected boolean | |
| public Object | |
| protected Object | convertSelectManyValuesForArray(FacesContext context, UISelectMany uiSelectMany, Class<?> elementType, String[] newValues)
|
| protected Collection | convertSelectManyValuesForCollection(FacesContext context, UISelectMany uiSelectMany, Class<? extends Collection<Object>> collectionType, String[] newValues)
|
| protected Object | convertSelectManyValuesForModel(FacesContext context, UISelectMany uiSelectMany, Class<?> modelType, String[] newValues)
|
| public Object | |
| protected Collection | Returns: a newCollection instance or null if the instance cannot be createda Collection instance collection, Class<? extends Collection<Object>> fallBackType)
|
| protected Collection | Returns: a new Collection instancethe Collection type as either a String or Class collectionTypeHint)Create a collection from the provided hint. |
| public void | decode(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.Overrides com.
Decode any new state of the specified |
| private void | |
| private void | |
| public void | encodeBegin(FacesContext
FacesContext for the request we are processingUIComponent to be renderedOverrides jakarta.
Render the beginning specified |
| public void | encodeEnd(FacesContext
FacesContext for the response we are creatingUIComponent to be renderedOverrides com.
Render the ending of the current state of the specified |
| public Object | getConvertedValue(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.a value stored on the component during submittedValue)decode.Overrides com.
Attempt to convert previously stored state information into an object of the type required for this component
(optionally using the registered |
| protected Object | |
| private Set | |
| protected String | |
| protected Integer | |
| protected Object[] | |
| protected static boolean | |
| private boolean | |
| protected boolean | isSelected(FacesContext context, UIComponent component, Object itemValue, Object valueArray, Converter<?> converter)
|
| protected boolean | renderOption(FacesContext context, UIComponent component, UIComponent selectComponent, Converter<?> converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, HtmlBasicRenderer.
|
| protected int | |
| protected void | |
| protected void |
| ATTRIBUTES | back to summary |
|---|---|
| private static final Attribute[] ATTRIBUTES | |
| MenuRenderer | back to summary |
|---|---|
| public MenuRenderer() | |
| bestGuess | back to summary |
|---|---|
protected Collection
| |
| cloneValue | back to summary |
|---|---|
| protected Collection
Utility method to invoke the the
| |
| coerceToModelType | back to summary |
|---|---|
| protected Object coerceToModelType(FacesContext ctx, Object value, Class<?> itemValueType) | |
| containsaValue | back to summary |
|---|---|
| protected boolean containsaValue(Object valueArray) | |
| convertSelectManyValue | back to summary |
|---|---|
| public Object convertSelectManyValue(FacesContext context, UISelectMany uiSelectMany, String[] newValues) throws ConverterException | |
| convertSelectManyValuesForArray | back to summary |
|---|---|
| protected Object convertSelectManyValuesForArray(FacesContext context, UISelectMany uiSelectMany, Class<?> elementType, String[] newValues) throws ConverterException | |
| convertSelectManyValuesForCollection | back to summary |
|---|---|
| protected Collection | |
| convertSelectManyValuesForModel | back to summary |
|---|---|
protected Object convertSelectManyValuesForModel(FacesContext context, UISelectMany uiSelectMany, Class<?> modelType, String[] newValues)
| |
| convertSelectOneValue | back to summary |
|---|---|
| public Object convertSelectOneValue(FacesContext context, UISelectOne uiSelectOne, String newValue) throws ConverterException | |
| createCollection | back to summary |
|---|---|
protected Collection
| |
| createCollectionFromHint | back to summary |
|---|---|
| protected Collection Create a collection from the provided hint.
| |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context, UIComponent component) Overrides com. Doc from jakarta.
Decode any new state of the specified
During decoding, events may be enqueued for later processing (by event listeners that have registered an interest),
by calling
| |
| decodeUISelectMany | back to summary |
|---|---|
| private void decodeUISelectMany(FacesContext context, UISelectMany component, String clientId) | |
| decodeUISelectOne | back to summary |
|---|---|
| private void decodeUISelectOne(FacesContext context, UIComponent component, String clientId) | |
| encodeBegin | back to summary |
|---|---|
| public void encodeBegin(FacesContext context, UIComponent component) throws IOException Overrides jakarta. Doc from jakarta.
Render the beginning specified
| |
| encodeEnd | back to summary |
|---|---|
| public void encodeEnd(FacesContext context, UIComponent component) throws IOException Overrides com. Doc from jakarta.
Render the ending of the current state of the specified
| |
| getConvertedValue | back to summary |
|---|---|
| public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException Overrides com. Doc from jakarta.
Attempt to convert previously stored state information into an object of the type required for this component
(optionally using the registered
| |
| getCurrentSelectedValues | back to summary |
|---|---|
protected Object getCurrentSelectedValues(UIComponent component)
| |
| getDisabledSelectItemValues | back to summary |
|---|---|
| private Set | |
| getMultipleText | back to summary |
|---|---|
| protected String getMultipleText(UIComponent component) | |
| getSizeAttribute | back to summary |
|---|---|
| protected Integer getSizeAttribute(UIComponent component) | |
| getSubmittedSelectedValues | back to summary |
|---|---|
| protected Object[] getSubmittedSelectedValues(UIComponent component) | |
| isHideNoSelection | back to summary |
|---|---|
| protected static boolean isHideNoSelection(UIComponent component) | |
| isNoValueOrNull | back to summary |
|---|---|
| private boolean isNoValueOrNull(String newValue, UIComponent component) | |
| isSelected | back to summary |
|---|---|
| protected boolean isSelected(FacesContext context, UIComponent component, Object itemValue, Object valueArray, Converter<?> converter) | |
| renderOption | back to summary |
|---|---|
| protected boolean renderOption(FacesContext context, UIComponent component, UIComponent selectComponent, Converter<?> converter, SelectItem curItem, Object currentSelections, Object[] submittedValues, HtmlBasicRenderer. | |
| renderOptions | back to summary |
|---|---|
| protected int renderOptions(FacesContext context, UIComponent component, SelectItemsIterator<SelectItem> items) throws IOException | |
| renderSelect | back to summary |
|---|---|
| protected void renderSelect(FacesContext context, UIComponent component) throws IOException | |
| writeDefaultSize | back to summary |
|---|---|
| protected void writeDefaultSize(ResponseWriter writer, int itemCount) throws IOException | |