public final class SelectItemsUtils extends Object
SelectItem or data represented by them.| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
collectAllValuesFromSelectItems(FacesContext context,
UIComponent component)
Collects all values associated with all
SelectItem instances associated with the given component. |
static Object |
findValueByStringConversion(FacesContext context,
UIComponent component,
String value,
Converter<Object> converter)
Finds an object value in the
SelectItem instances associated with the given component by means of matching its converted value with
the given string value. |
public static Object findValueByStringConversion(FacesContext context, UIComponent component, String value, Converter<Object> converter)
SelectItem instances associated with the given component by means of matching its converted value with
the given string value.context - The involved faces context.component - the component with which SelectItems should be associated that are used to search in.value - a string that should match the string representation of one of the values held by the SelectItems.converter - the faces Converter used to generate String representations for the values held by the SelectItems.public static List<Object> collectAllValuesFromSelectItems(FacesContext context, UIComponent component)
SelectItem instances associated with the given component.
Note that values from recursively scanned SelectItemGroup instances are included.
context - The involved faces context.component - the component with which SelectItem instances should be associatedSelectItem instancesCopyright © 2012–2021 OmniFaces. All rights reserved.