public class JosefSelectOneUtilBean extends JosefSelectUtilBean implements Serializable
| Constructor and Description |
|---|
JosefSelectOneUtilBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabelFromSelectItemsAndValue(javax.faces.model.SelectItem[] selectItems,
Object value)
Gets the Label of the SelectItem with the supplied value from the supplied
selectItems.
|
String |
getLabelOfSelectOneComponent(String id)
Gets the current Label (that is the one corresponding to the current
value) of the Select component with the supplied id.
|
String |
getLabelOfSelectOneComponent(javax.faces.component.UINamingContainer namingContainer,
String componentId)
Gets the current Label (that is the one corresponding to the current
value) of the SelectOne...
|
hasZeroOrOneSelectItem, hasZeroOrOneSelectItempublic String getLabelFromSelectItemsAndValue(javax.faces.model.SelectItem[] selectItems, Object value)
selectItems - The select items to get a single label from.value - The value of the select item.IllegalArgumentException - When the supplied selectItems is empty
or when the supplied selectItems does not contain a SelectItem with the
supplied value.NullPointerException - When the supplied selectItems is null.JsfSelectItemUtil.getLabelFromSelectItemsAndValue(SelectItem[], Object)public String getLabelOfSelectOneComponent(String id)
id - The id of the Select component.IllegalArgumentException - when the supplied id is empty or when
no component with the supplied id could be found or when the component
could be found, but does not have any SelectItems.NullPointerException - When the supplied id is null.public String getLabelOfSelectOneComponent(javax.faces.component.UINamingContainer namingContainer, String componentId)
namingContainer - The naming container, containing the SelectOne...
component.componentId - The ID of the SelectOne... component.IllegalArgumentException - When the supplied componentId is empty
or does not refer to an existing component within the supplied namingContainer.NullPointerException - When either the supplied namingContainer or
componentId is null.Copyright © 2008–2018. All rights reserved.