UISelectOne and UISelectMany.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | SelectUtils.ArrayIterator
Exposes an Array via an |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Object | Returns: the result of the Jakarta Expression Language coersionthe ctx, Object FacesContext for the current requestthe value to coerce value, Class<T> the type toType)value should be coerced toCoerce the provided value to the specified type using Jakarta Expression Language coercion. |
| private static Object | doConversion(FacesContext ctx, UIComponent component, SelectItem item, Object value, Converter<T> converter)
|
| pack-priv static boolean | matchValue(FacesContext
FacesContext for the current requestUIComponent value to be testedIterator over the items, Converter<T> jakarta.faces.model.SelectItems to be checkedthe converter)Converter associated with this component
Return |
| pack-priv static boolean | valueIsNoSelectionOption(FacesContext ctx, UIComponent component, Object value, Iterator<SelectItem> items, Converter<T> converter)
Returns true iff component has a |
| SelectUtils | back to summary |
|---|---|
| private SelectUtils() | |
| coerceToModelType | back to summary |
|---|---|
| private static Object coerceToModelType(FacesContext ctx, Object value, Class<T> toType) Coerce the provided value to the specified type using Jakarta Expression Language coercion.
| |
| doConversion | back to summary |
|---|---|
| private static Object doConversion(FacesContext ctx, UIComponent component, SelectItem item, Object value, Converter<T> converter) throws IllegalStateException | |
| matchValue | back to summary |
|---|---|
| pack-priv static boolean matchValue(FacesContext ctx, UIComponent component, Object value, Iterator<SelectItem> items, Converter<T> converter)
Return
| |
| valueIsNoSelectionOption | back to summary |
|---|---|
| pack-priv static boolean valueIsNoSelectionOption(FacesContext ctx, UIComponent component, Object value, Iterator<SelectItem> items, Converter<T> converter) Returns true iff component has a | |
Iterator
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | |
| public void | remove()
Overrides default java. |
| ArrayIterator | back to summary |
|---|---|
| public ArrayIterator(Object[] items) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |