Class SelectItemsUtil
java.lang.Object
org.apache.myfaces.core.api.shared.SelectItemsUtil
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic List<SelectItem>collectSelectItems(FacesContext context, UIComponent component) static <S extends SelectItem>
 ScreateSelectItem(UIComponent component, Object value, Supplier<S> supplier) static <S extends SelectItem>
 ScreateSelectItem(UISelectItem uiSelectItem, Supplier<S> supplier) static <S extends SelectItem>
 voidcreateSelectItems(FacesContext context, UISelectItems component, Object values, Supplier<S> supplier, Consumer<S> callback) static booleanisNoSelectionOption(FacesContext context, UIComponent uiComponent, Object value, Iterator<SelectItem> iterator, Converter converter) static booleanmatchValue(FacesContext context, UIComponent uiComponent, Object value, Iterator<SelectItem> iterator, Converter converter) static SelectItemupdateSelectItem(UISelectItems uiSelectItems, SelectItem value) 
- 
Field Details- 
ATTR_ITEM_VALUE- See Also:
 
- 
ATTR_ITEM_LABEL- See Also:
 
- 
ATTR_ITEM_DESCRIPTION- See Also:
 
- 
ATTR_ITEM_DISABLED- See Also:
 
- 
ATTR_ITEM_LABEL_ESCAPED- See Also:
 
- 
ATTR_NO_SELECTION_VALUE- See Also:
 
- 
ATTR_NO_SELECTION_OPTION- See Also:
 
- 
ATTR_VAR- See Also:
 
 
- 
- 
Constructor Details- 
SelectItemsUtilpublic SelectItemsUtil()
 
- 
- 
Method Details- 
createSelectItempublic static <S extends SelectItem> S createSelectItem(UISelectItem uiSelectItem, Supplier<S> supplier) 
- 
createSelectItempublic static <S extends SelectItem> S createSelectItem(UIComponent component, Object value, Supplier<S> supplier) 
- 
updateSelectItem
- 
collectSelectItems
- 
createSelectItemspublic static <S extends SelectItem> void createSelectItems(FacesContext context, UISelectItems component, Object values, Supplier<S> supplier, Consumer<S> callback) 
- 
matchValuepublic static boolean matchValue(FacesContext context, UIComponent uiComponent, Object value, Iterator<SelectItem> iterator, Converter converter) - Parameters:
- context- the faces context
- uiComponent- the component instance
- value- the value to check
- converter- a converter instance
- iterator- contains instances of SelectItem
- Returns:
- if the value of a selectitem is equal to the given value
 
- 
isNoSelectionOptionpublic static boolean isNoSelectionOption(FacesContext context, UIComponent uiComponent, Object value, Iterator<SelectItem> iterator, Converter converter) - Parameters:
- context- the faces context
- uiComponent- the component instance
- value- the value to check
- converter-
- iterator- contains instances of SelectItem
- Returns:
- if the value is a SelectItem of selectItemsIter, on which noSelectionOption is true
 
 
-