Top Description Constructors Methods
com.sun.faces.util

public Class SelectItemUtils

extends Object
Class Inheritance
Static Imports
com.sun.faces.util.Util.coalesce, .Util.stream

Helper for UISelectItemGroup and UISelectItemGroups

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<SelectItem>
public static <S extends SelectItem> S
createSelectItem(UIComponent component, Object value, Supplier<S> supplier)

public static <S extends SelectItem> void
createSelectItems(FacesContext context, UIComponent component, Object values, Supplier<S> supplier, Consumer<S> callback)

private static Object
getItemValue(Map<String, Object> attributes, Object defaultValue)

Returns item value attribute, taking into account any value expression which actually evaluates to null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SelectItemUtilsback to summary
public SelectItemUtils()

Method Detail

collectSelectItemsback to summary
public static List<SelectItem> collectSelectItems(FacesContext context, UIComponent component)
createSelectItemback to summary
public static <S extends SelectItem> S createSelectItem(UIComponent component, Object value, Supplier<S> supplier)
createSelectItemsback to summary
public static <S extends SelectItem> void createSelectItems(FacesContext context, UIComponent component, Object values, Supplier<S> supplier, Consumer<S> callback)
getItemValueback to summary
private static Object getItemValue(Map<String, Object> attributes, Object defaultValue)

Returns item value attribute, taking into account any value expression which actually evaluates to null.