|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omnifaces.util.selectitems.SelectItemsUtils
public final class SelectItemsUtils
Collection of utility methods for working with SelectItem
or data represented by them.
Method Summary | |
---|---|
static java.util.List<java.lang.Object> |
collectAllValuesFromSelectItems(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Collects all values associated with all SelectItem instances associated with the given component. |
static java.lang.Object |
findValueByStringConversion(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value,
javax.faces.convert.Converter 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object findValueByStringConversion(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value, javax.faces.convert.Converter converter)
SelectItem
instances associated with the given component by means of matching its converted value with
the given string value.
context
- component
- the component with which SelectItem
s 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 SelectItem
s.converter
- the faces Converter
used to generate String representations for the values held by the SelectItem
s.
public static java.util.List<java.lang.Object> collectAllValuesFromSelectItems(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
SelectItem
instances associated with the given component.
Note that values from recursively scanned SelectItemGroup
instances are included.
context
- component
- the component with which SelectItem
instances should be associated
SelectItem
instances
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |