class SelectUtils
extends java.lang.Object
UISelectOne
and UISelectMany
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
SelectUtils.ArrayIterator
Exposes an Array via an
Iterator |
Modifier | Constructor and Description |
---|---|
private |
SelectUtils() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Object |
coerceToModelType(FacesContext ctx,
java.lang.Object value,
java.lang.Class toType)
Coerce the provided value to the specified type using EL coercion.
|
private static java.lang.Object |
doConversion(FacesContext ctx,
UIComponent component,
SelectItem item,
java.lang.Object value,
Converter converter) |
(package private) static boolean |
matchValue(FacesContext ctx,
UIComponent component,
java.lang.Object value,
java.util.Iterator<SelectItem> items,
Converter converter)
Return
true if the specified value matches one of the
available options, performing a recursive search if if a SelectItemGroup instance is detected. |
(package private) static boolean |
valueIsNoSelectionOption(FacesContext ctx,
UIComponent component,
java.lang.Object value,
java.util.Iterator<SelectItem> items,
Converter converter)
Returns true iff component has a
UISelectItem child
whose itemValue exactly matches the argument value |
static boolean matchValue(FacesContext ctx, UIComponent component, java.lang.Object value, java.util.Iterator<SelectItem> items, Converter converter)
Return true
if the specified value matches one of the
available options, performing a recursive search if if a SelectItemGroup
instance is detected.
ctx
- FacesContext
for the current requestvalue
- UIComponent
value to be testeditems
- Iterator over the SelectItem
s
to be checkedconverter
- the Converter
associated with this componentstatic boolean valueIsNoSelectionOption(FacesContext ctx, UIComponent component, java.lang.Object value, java.util.Iterator<SelectItem> items, Converter converter)
UISelectItem
child
whose itemValue exactly matches the argument valuectx
- component
- value
- items
- private static java.lang.Object doConversion(FacesContext ctx, UIComponent component, SelectItem item, java.lang.Object value, Converter converter) throws java.lang.IllegalStateException
java.lang.IllegalStateException
private static java.lang.Object coerceToModelType(FacesContext ctx, java.lang.Object value, java.lang.Class toType)
ctx
- the FacesContext
for the current requestvalue
- the value to coercetoType
- the type value
should be coerced toExpressionFactory.coerceToType(Object, Class)