Top Description Inners Fields Constructors Methods
javax.faces.component

public Class UISelectItem

extends UIComponentBase
Class Inheritance
Imports
javax.faces.model.SelectItem

UISelectItem is a component that may be nested inside a UISelectMany or UISelectOne component, and causes the addition of a SelectItem instance to the list of available options for the parent component. The contents of the SelectItem can be specified in one of the following ways:

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum

Field Summary

Modifier and TypeField and Description
public static final String
COMPONENT_FAMILY

The standard component family for this component.

public static final String
COMPONENT_TYPE

The standard component type for this component.

Constructor Summary

AccessConstructor and Description
public
UISelectItem()

Create a new UISelectItem instance with default property values.

Method Summary

Modifier and TypeMethod and Description
public String
getFamily()

Implements abstract javax.faces.component.UIComponent.getFamily.

Return the identifier of the component family to which this component belongs.

public String

Returns:

the item description.
getItemDescription
()

Return the description for this selection item.

public String

Returns:

the item label.
getItemLabel
()

Return the localized label for this selection item.

public Object

Returns:

the item value.
getItemValue
()

Return the server value for this selection item.

public Object

Returns:

the value.
getValue
()

Returns the value property of the UISelectItem.

public boolean

Returns:

true is the item disabled, false otherwise.
isItemDisabled
()

Return the disabled setting for this selection item.

public boolean

Returns:

true if the item is escaped, false otherwise.
isItemEscaped
()

Return the escape setting for the label of this selection item.

public boolean

Returns:

the no selection option.
isNoSelectionOption
()

Return the value of the noSelectionOption property.

public void
setItemDescription(String
The new description
itemDescription
)

Set the description for this selection item.

public void
setItemDisabled(boolean
The new disabled flag
itemDisabled
)

Set the disabled value for this selection item.

public void
setItemEscaped(boolean
The new disabled flag
itemEscaped
)

Set the escape value for the label of this selection item.

public void
setItemLabel(String
The new localized label
itemLabel
)

Set the localized label for this selection item.

public void
setItemValue(Object
The new server value
itemValue
)

Set the server value for this selection item.

public void
setNoSelectionOption(boolean
the no selection option.
noSelectionOption
)

Set the value of the noSelectionOption property.

public void
setValue(Object
the new value
value
)

Sets the value property of the UISelectItem.

Inherited from javax.faces.component.UIComponentBase:
addClientBehavioraddFacesListenerbroadcastclearInitialStatedecodeencodeBeginencodeChildrenencodeEndfindComponentgetAttributesgetChildCountgetChildrengetClientBehaviorsgetClientIdgetDefaultEventNamegetDescriptorMapgetEventNamesgetFacesContextgetFacesListenersgetFacetgetFacetCountgetFacetsgetFacetsAndChildrengetIdgetListenersForEventClassgetParentgetPassThroughAttributesgetRenderergetRendererTypegetRendersChildrengetValueBindinginvokeOnComponentisRenderedisTransientmarkInitialStateprocessDecodesprocessRestoreStateprocessSaveStateprocessUpdatesprocessValidatorsqueueEventremoveFacesListenerrestoreAttachedStaterestoreStatesaveAttachedStatesaveStatesetIdsetParentsetRenderedsetRendererTypesetTransientsetValueBindingsubscribeToEventunsubscribeFromEvent

Field Detail

COMPONENT_FAMILYback to summary
public static final String COMPONENT_FAMILY

The standard component family for this component.

COMPONENT_TYPEback to summary
public static final String COMPONENT_TYPE

The standard component type for this component.

Constructor Detail

UISelectItemback to summary
public UISelectItem()

Create a new UISelectItem instance with default property values.

Method Detail

getFamilyback to summary
public String getFamily()

Implements abstract javax.faces.component.UIComponent.getFamily.

Doc from javax.faces.component.UIComponent.getFamily.

Return the identifier of the component family to which this component belongs. This identifier, in conjunction with the value of the rendererType property, may be used to select the appropriate Renderer for this component instance. Note this method should NOT return null

Returns:String

the component family (not null).

Annotations
@Override
getItemDescriptionback to summary
public String getItemDescription()

Return the description for this selection item.

Returns:String

the item description.

getItemLabelback to summary
public String getItemLabel()

Return the localized label for this selection item.

Returns:String

the item label.

getItemValueback to summary
public Object getItemValue()

Return the server value for this selection item.

Returns:Object

the item value.

getValueback to summary
public Object getValue()

Returns the value property of the UISelectItem.

Returns:Object

the value.

isItemDisabledback to summary
public boolean isItemDisabled()

Return the disabled setting for this selection item.

Returns:boolean

true is the item disabled, false otherwise.

isItemEscapedback to summary
public boolean isItemEscaped()

Return the escape setting for the label of this selection item.

Returns:boolean

true if the item is escaped, false otherwise.

isNoSelectionOptionback to summary
public boolean isNoSelectionOption()

Return the value of the noSelectionOption property. If the value of this property is true, the system interprets the option represented by this UISelectItem instance as representing a "no selection" option. See UISelectOne#validateValue and UISelectMany#validateValue for usage.

Returns:boolean

the no selection option.

Since
2.0
setItemDescriptionback to summary
public void setItemDescription(String itemDescription)

Set the description for this selection item.

Parameters
itemDescription:String

The new description

setItemDisabledback to summary
public void setItemDisabled(boolean itemDisabled)

Set the disabled value for this selection item.

Parameters
itemDisabled:boolean

The new disabled flag

setItemEscapedback to summary
public void setItemEscaped(boolean itemEscaped)

Set the escape value for the label of this selection item.

Parameters
itemEscaped:boolean

The new disabled flag

setItemLabelback to summary
public void setItemLabel(String itemLabel)

Set the localized label for this selection item.

Parameters
itemLabel:String

The new localized label

setItemValueback to summary
public void setItemValue(Object itemValue)

Set the server value for this selection item.

Parameters
itemValue:Object

The new server value

setNoSelectionOptionback to summary
public void setNoSelectionOption(boolean noSelectionOption)

Set the value of the noSelectionOption property.

Parameters
noSelectionOption:boolean

the no selection option.

Since
2.0
setValueback to summary
public void setValue(Object value)

Sets the value property of the UISelectItem.

Parameters
value:Object

the new value

javax.faces.component back to summary

pack-priv final Enum UISelectItem.PropertyKeys

extends Enum<UISelectItem.PropertyKeys>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys
public static final UISelectItem.PropertyKeys

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static UISelectItem.PropertyKeys
public static UISelectItem.PropertyKeys[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

itemDescriptionback to summary
public static final UISelectItem.PropertyKeys itemDescription
itemDisabledback to summary
public static final UISelectItem.PropertyKeys itemDisabled
itemEscapedback to summary
public static final UISelectItem.PropertyKeys itemEscaped
itemLabelback to summary
public static final UISelectItem.PropertyKeys itemLabel
itemValueback to summary
public static final UISelectItem.PropertyKeys itemValue
noSelectionOptionback to summary
public static final UISelectItem.PropertyKeys noSelectionOption
valueback to summary
public static final UISelectItem.PropertyKeys value

Constructor Detail

PropertyKeysback to summary
private PropertyKeys()

Method Detail

valueOfback to summary
public static UISelectItem.PropertyKeys valueOf(String name)
valuesback to summary
public static UISelectItem.PropertyKeys[] values()