org.apache.myfaces.custom.selectitems
Class AbstractUISelectItems

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UISelectItems
              extended by org.apache.myfaces.custom.selectitems.AbstractUISelectItems
All Implemented Interfaces:
javax.faces.component.StateHolder

public abstract class AbstractUISelectItems
extends javax.faces.component.UISelectItems

An extended version of the standard UISelectItems. Populates the SelectItem collection from the given value automatically using the itemLabel and itemValue attributes. By using the component there is no need to manually create a SelectItem collection because component automatically populates SelectItem objects from types like Collection, Map and etc..

Since:
1.1.7
Version:
$Revision: 891039 $ $Date: 2009-12-15 17:29:01 -0500 (Tue, 15 Dec 2009) $
Author:
cagatay (latest modification by $Author: lu4242 $)

Field Summary
static String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UISelectItems
COMPONENT_FAMILY
 
Constructor Summary
AbstractUISelectItems()
           
 
Method Summary
abstract  Object getItemLabel()
          name of the selectitem
abstract  Object getItemValue()
          value of the selectitem
 Object getValue()
           
abstract  String getVar()
          name of the iterator
abstract  boolean isUseEntryAsItem()
          Only applies when value points to a map.
 
Methods inherited from class javax.faces.component.UISelectItems
getFamily, isRendered, restoreState, saveState, setRendered, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractUISelectItems

public AbstractUISelectItems()
Method Detail

getVar

public abstract String getVar()
name of the iterator


getItemLabel

public abstract Object getItemLabel()
name of the selectitem


getItemValue

public abstract Object getItemValue()
value of the selectitem


isUseEntryAsItem

public abstract boolean isUseEntryAsItem()
Only applies when value points to a map. Use the Entry instance instead the value for resolve EL Expressions

Since:
1.1.10

getValue

public Object getValue()
Overrides:
getValue in class javax.faces.component.UISelectItems


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.