Top Description Inners Fields Constructors Methods
javax.faces.component

public Class UIParameter

extends UIComponentBase
Class Inheritance

UIParameter is a UIComponent that represents an optionally named configuration parameter for a parent component.

Parent components should retrieve the value of a parameter by calling getValue(). In this way, the parameter value can be set directly on the component (via setValue()), or retrieved indirectly via the value binding expression.

In some scenarios, it is necessary to provide a parameter name, in addition to the parameter value that is accessible via the getValue() method. javax.faces.render.Renderers that support parameter names on their nested UIParameter child components should document their use of this property.

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
UIParameter()

Create a new UIParameter 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 name.
getName
()

Return the optional parameter name for this parameter.

public Object

Returns:

the value.
getValue
()

Returns the value property of the UIParameter.

public boolean

Returns:

true if disabled, false otherwise.
isDisable
()

Return the value of the disable directive for this component.

public void
setDisable(boolean
the value for the disable flag.
disable
)

Sets the disable property of the UIParameter.

public void
setName(String
The new parameter name, or null for no name
name
)

Set the optional parameter name for this parameter.

public void
setValue(Object
the new value
value
)

Sets the value property of the\ UIParameter.

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

UIParameterback to summary
public UIParameter()

Create a new UIParameter 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
getNameback to summary
public String getName()

Return the optional parameter name for this parameter.

Returns:String

the name.

getValueback to summary
public Object getValue()

Returns the value property of the UIParameter.

Returns:Object

the value.

isDisableback to summary
public boolean isDisable()

Return the value of the disable directive for this component. This directive determines whether the parameter value should be disabled by assigning it a null value. If true, the value set on this component is ignored.

Returns:boolean

true if disabled, false otherwise.

Since
2.0
setDisableback to summary
public void setDisable(boolean disable)

Sets the disable property of the UIParameter.

Parameters
disable:boolean

the value for the disable flag.

Since
2.0
setNameback to summary
public void setName(String name)

Set the optional parameter name for this parameter.

Parameters
name:String

The new parameter name, or null for no name

setValueback to summary
public void setValue(Object value)

Sets the value property of the\ UIParameter.

Parameters
value:Object

the new value

javax.faces.component back to summary

pack-priv final Enum UIParameter.PropertyKeys

extends Enum<UIParameter.PropertyKeys>
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

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

Field Detail

disableback to summary
public static final UIParameter.PropertyKeys disable
nameback to summary
public static final UIParameter.PropertyKeys name

Hides java.lang.Enum.name.

valueback to summary
public static final UIParameter.PropertyKeys value

Constructor Detail

PropertyKeysback to summary
private PropertyKeys()

Method Detail

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