ClientBehaviorContext provides context information that may be useful
to jakarta.faces.component.behavior.ClientBehavior#getScript
implementations.
Modifier and Type | Class and Description |
---|---|
private static class | |
public static class | ClientBehaviorContext.Parameter
Parameter instances represent name/value pairs that "submitting" ClientBehavior implementations should include when posting back into the Faces lifecycle. |
Modifier and Type | Field and Description |
---|---|
public static final String | BEHAVIOR_EVENT_PARAM_NAME
The request parameter name whose request parameter value identifies the type of behavior event. |
public static final String | BEHAVIOR_SOURCE_PARAM_NAME
The request parameter name whose request parameter value identifies the source component of behavior event. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static ClientBehaviorContext | Returns: aClientBehaviorContext instance configured with the provided values.the context, UIComponent FacesContext for the current request.the component instance to which the component, String ClientBehavior is attached.the name of the behavior event to which the eventName, String ClientBehavior is attached.the id to use as the ClientBehavior's "source". sourceId, Collection<ClientBehaviorContext.the collection of parameters for submitting ClientBehaviors to include in the request. parametersCreates a ClientBehaviorContext instance. |
public abstract UIComponent | Returns: the component.
Returns the |
public abstract String | Returns: the event name.Returns the name of the behavior event for which the ClientBehavior script is being requested. |
public abstract FacesContext | |
public abstract Collection | Returns: the parameters.
Returns parameters that "submitting" |
public abstract String | Returns: the id for the behavior's script to use as the "source", or null if the Behavior's script can identify the source from the DOM.
Returns an id for use as the |
BEHAVIOR_EVENT_PARAM_NAME | back to summary |
---|---|
public static final String BEHAVIOR_EVENT_PARAM_NAME The request parameter name whose request parameter value identifies the type of behavior event.
|
BEHAVIOR_SOURCE_PARAM_NAME | back to summary |
---|---|
public static final String BEHAVIOR_SOURCE_PARAM_NAME The request parameter name whose request parameter value identifies the source component of behavior event.
|
ClientBehaviorContext | back to summary |
---|---|
public ClientBehaviorContext() |
createClientBehaviorContext | back to summary |
---|---|
public static ClientBehaviorContext createClientBehaviorContext(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext. Creates a ClientBehaviorContext instance.
|
getComponent | back to summary |
---|---|
public abstract UIComponent getComponent()
Returns the
|
getEventName | back to summary |
---|---|
public abstract String getEventName() Returns the name of the behavior event for which the ClientBehavior script is being requested.
|
getFacesContext | back to summary |
---|---|
public abstract FacesContext getFacesContext()
Returns the
|
getParameters | back to summary |
---|---|
public abstract Collection
Returns parameters that "submitting"
|
getSourceId | back to summary |
---|---|
public abstract String getSourceId()
Returns an id for use as the
|
Modifier and Type | Field and Description |
---|---|
private UIComponent | |
private FacesContext | |
private String | |
private Collection | |
private String |
Access | Constructor and Description |
---|---|
private | ClientBehaviorContextImpl(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext.
|
component | back to summary |
---|---|
private UIComponent component |
context | back to summary |
---|---|
private FacesContext context |
eventName | back to summary |
---|---|
private String eventName |
parameters | back to summary |
---|---|
private Collection<ClientBehaviorContext. |
sourceId | back to summary |
---|---|
private String sourceId |
ClientBehaviorContextImpl | back to summary |
---|---|
private ClientBehaviorContextImpl(FacesContext context, UIComponent component, String eventName, String sourceId, Collection<ClientBehaviorContext. |
getComponent | back to summary |
---|---|
public UIComponent getComponent() Implements abstract jakarta. Doc from jakarta.
Returns the
|
getEventName | back to summary |
---|---|
public String getEventName() Implements abstract jakarta. Doc from jakarta. Returns the name of the behavior event for which the ClientBehavior script is being requested. |
getFacesContext | back to summary |
---|---|
public FacesContext getFacesContext() Implements abstract jakarta. Doc from jakarta.
Returns the
|
getParameters | back to summary |
---|---|
public Collection Implements abstract jakarta. Doc from jakarta.
Returns parameters that "submitting"
|
getSourceId | back to summary |
---|---|
public String getSourceId() Implements abstract jakarta. Doc from jakarta.
Returns an id for use as the |
Parameter instances represent name/value pairs that "submitting" ClientBehavior implementations should include when posting back into the Faces lifecycle. ClientBehavior implementations can determine which Parameters to include by calling ClientBehaviorContext.getParameters().
Access | Constructor and Description |
---|---|
public |
Parameter | back to summary |
---|---|
public Parameter(String name, Object value) Creates a Parameter instance.
|
getName | back to summary |
---|---|
public String getName() Returns the Parameter's name.
|
getValue | back to summary |
---|---|
public Object getValue() Returns the Parameter's value.
|