org.apache.myfaces.custom.radio
Class AbstractHtmlRadio

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.custom.radio.AbstractHtmlRadio
All Implemented Interfaces:
EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.apache.myfaces.component.AccesskeyProperty, org.apache.myfaces.component.AlignProperty, org.apache.myfaces.component.AltProperty, ChangeSelectProperties, org.apache.myfaces.component.DisabledClassEnabledClassProperties, EventAware, FocusBlurProperties, org.apache.myfaces.component.StyleAware, org.apache.myfaces.component.TabindexProperty, org.apache.myfaces.component.UniversalProperties, org.apache.myfaces.component.UserRoleAware

public abstract class AbstractHtmlRadio
extends javax.faces.component.UIComponentBase
implements org.apache.myfaces.component.UserRoleAware, FocusBlurProperties, ChangeSelectProperties, org.apache.myfaces.component.UniversalProperties, EventAware, org.apache.myfaces.component.AltProperty, org.apache.myfaces.component.AlignProperty, org.apache.myfaces.component.StyleAware, org.apache.myfaces.component.AccesskeyProperty, org.apache.myfaces.component.TabindexProperty, org.apache.myfaces.component.DisabledClassEnabledClassProperties

This tag is used in conjunction with the extended selectOneRadio tag when the "spread" layout is selected. It specifies the position within the document that the radio button corresponding to a specific SelectItem should be rendered. All HTML pass-through attributes for this input are taken from the associated selectOneRadio. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (miƩ, 03 sep 2008) $
Author:
Thomas Spiegl (latest modification by $Author: lu4242 $)

Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
static String FOR_ATTR
           
static String INDEX_ATTR
           
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Constructor Summary
AbstractHtmlRadio()
           
 
Method Summary
abstract  String getFor()
          The id of the referenced extended selectOneRadio component.
abstract  int getIndex()
          The index of the corresponding SelectItem, where 0 represents the first SelectItem.
abstract  boolean isRenderLogicalId()
          If this property is set to true, the id generated for the input html markup will be the logical id composed from the clientId of the associated selectOneRadio and the index of this component (for example 'myComp:2').
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree
 
Methods inherited from class javax.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.component.UserRoleAware
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole
 
Methods inherited from interface org.apache.myfaces.component.FocusBlurProperties
getOnblur, getOnfocus
 
Methods inherited from interface org.apache.myfaces.component.ChangeSelectProperties
getOnchange, getOnselect
 
Methods inherited from interface org.apache.myfaces.component.UniversalProperties
getDir, getLang, getTitle
 
Methods inherited from interface org.apache.myfaces.component.EventAware
getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup
 
Methods inherited from interface org.apache.myfaces.component.AltProperty
getAlt
 
Methods inherited from interface org.apache.myfaces.component.AlignProperty
getAlign
 
Methods inherited from interface org.apache.myfaces.component.StyleAware
getStyle, getStyleClass
 
Methods inherited from interface org.apache.myfaces.component.AccesskeyProperty
getAccesskey
 
Methods inherited from interface org.apache.myfaces.component.TabindexProperty
getTabindex
 
Methods inherited from interface org.apache.myfaces.component.DisabledClassEnabledClassProperties
getDisabledClass, getEnabledClass
 

Field Detail

FOR_ATTR

public static final String FOR_ATTR

INDEX_ATTR

public static final String INDEX_ATTR

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

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

AbstractHtmlRadio

public AbstractHtmlRadio()
Method Detail

getFor

public abstract String getFor()
The id of the referenced extended selectOneRadio component. This value is resolved to the particular component using the standard UIComponent.findComponent() searching algorithm.


getIndex

public abstract int getIndex()
The index of the corresponding SelectItem, where 0 represents the first SelectItem.


isRenderLogicalId

@JSFProperty(defaultValue="false")
public abstract boolean isRenderLogicalId()
If this property is set to true, the id generated for the input html markup will be the logical id composed from the clientId of the associated selectOneRadio and the index of this component (for example 'myComp:2').

NOTE: This is provided only for backward compatibility with tomahawk 1.2. Activate this behavior will make client behaviors added to t:selectOneRadio like f:ajax or others fail, because the logical id has no counterpart in the component tree.

Returns:


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