UIViewParameter represents a
binding between a request parameter and a model property or UIViewRoot
property. This is a bi-directional binding.
The javax.faces.view.ViewDeclarationLanguage
implementation must cause an instance of this component to appear in
the view for each occurrence of an <f:viewParam />
element placed inside of an <f:metadata />
element. The user must place this facet within the
UIViewRoot.
Because this class extends UIInput any actions that
one would normally take on a UIInput instance are valid
for instances of this class. Instances of this class participate in
the regular JSF lifecycle, including on Ajax requests.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| public static class | UIViewParameter.Reference
Inner class to encapsulate a
|
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_FAMILY
Hides javax. The standard component family for this component. |
| public static final String | COMPONENT_TYPE
Hides javax. The standard component type for this component. |
| private transient Boolean | |
| private Renderer | |
| private String | rawValue
The raw value is the "implicit" binding for this view parameter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | decode(FacesContext
FacesContext for the request we are processingOverrides javax. Override behavior from superclass to
pull a value from the incoming request parameter map under the
name given by |
| public void | encodeAll(FacesContext
the Faces context. context)Overrides javax. Called specially by |
| protected Object | Returns: the converted value.the Faces context. context, Object the submitted value. submittedValue)Overrides javax. Because this class has no |
| public String | getFamily()
Overrides javax. Return the identifier of the component family to which this component belongs. |
| private Renderer | |
| public String | |
| public String | Returns: the string value.the Faces context. context)If the value of this parameter comes
from a |
| public String | Returns: the string value from the model.the Faces context. context)Manually perform standard conversion steps to get a string value from the value expression. |
| public Object | Returns: the submitted value.Overrides javax. Implements javax. Assume
that the submitted value is
always a string, but the return type
from this method is |
| private boolean | |
| public boolean | Returns: true if immediate, false otherwise.Overrides javax. Implements javax. Return |
| private boolean | |
| private boolean | |
| private boolean | |
| public void | processValidators(FacesContext
the Faces context. context)Overrides javax. Specialize
superclass behavior to treat
|
| public void | |
| public void | setSubmittedValue(Object
The new submitted value submittedValue)Overrides javax. Implements javax. |
| public void | updateModel(FacesContext
FacesContext for the request we are processingOverrides javax. Call through to superclass |
| COMPONENT_FAMILY | back to summary |
|---|---|
| public static final String COMPONENT_FAMILY Hides javax. The standard component family for this component. | |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE Hides javax. The standard component type for this component. | |
| emptyStringIsNull | back to summary |
|---|---|
| private transient Boolean emptyStringIsNull | |
| inputTextRenderer | back to summary |
|---|---|
| private Renderer inputTextRenderer | |
| rawValue | back to summary |
|---|---|
| private String rawValue The raw value is the "implicit" binding for this view parameter. This property maintains the submitted value of the view parameter for the duration of the request. If the view parameter does not explicitly specify a value expression, then when the request ends, this value is stored with the state of this component to use as the submitted value on an ensuing postback. | |
| UIViewParameter | back to summary |
|---|---|
| public UIViewParameter() Create a new | |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context) Overrides javax. Override behavior from superclass to
pull a value from the incoming request parameter map under the
name given by
| |
| encodeAll | back to summary |
|---|---|
| public void encodeAll(FacesContext context) throws IOException Overrides javax. Called specially by
| |
| getConvertedValue | back to summary |
|---|---|
| protected Object getConvertedValue(FacesContext context, Object submittedValue) throws ConverterException Overrides javax. Because this class has no
| |
| getFamily | back to summary |
|---|---|
| public String getFamily() Overrides javax. Doc from javax. Return the identifier of the component
family to which this component belongs. This identifier, in conjunction
with the value of the | |
| getInputTextRenderer | back to summary |
|---|---|
| private Renderer getInputTextRenderer(FacesContext context) | |
| getName | back to summary |
|---|---|
| public String getName() Return the request parameter name from which the value is retrieved.
| |
| getStringValue | back to summary |
|---|---|
| public String getStringValue(FacesContext context) If the value of this parameter comes
from a
| |
| getStringValueFromModel | back to summary |
|---|---|
| public String getStringValueFromModel(FacesContext context) throws ConverterException Manually perform standard conversion steps to get a string value from the value expression.
| |
| getSubmittedValue | back to summary |
|---|---|
| public Object getSubmittedValue() Overrides javax. Implements javax. Assume
that the submitted value is
always a string, but the return type
from this method is | |
| hasValueExpression | back to summary |
|---|---|
| private boolean hasValueExpression() | |
| isImmediate | back to summary |
|---|---|
| public boolean isImmediate() Overrides javax. Implements javax. Return
| |
| isRequiredViaNestedRequiredValidator | back to summary |
|---|---|
| private boolean isRequiredViaNestedRequiredValidator() | |
| myConsiderEmptyStringNull | back to summary |
|---|---|
| private boolean myConsiderEmptyStringNull(FacesContext ctx) | |
| myIsRequired | back to summary |
|---|---|
| private boolean myIsRequired() | |
| processValidators | back to summary |
|---|---|
| public void processValidators(FacesContext context) Overrides javax. Specialize
superclass behavior to treat
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the request parameter name from which the value is retrieved.
| |
| setSubmittedValue | back to summary |
|---|---|
| public void setSubmittedValue(Object submittedValue) Overrides javax. Implements javax. PENDING (docs) Interesting that submitted value isn't saved by the parent | |
| updateModel | back to summary |
|---|---|
| public void updateModel(FacesContext context) Overrides javax. Call through to superclass
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UIViewParameter. | name
Hides java. |
| public static final UIViewParameter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UIViewParameter. | |
| public static UIViewParameter. |
| name | back to summary |
|---|---|
| public static final UIViewParameter. Hides java. | |
| submittedValue | back to summary |
|---|---|
| public static final UIViewParameter. | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| valueOf | back to summary |
|---|---|
| public static UIViewParameter. | |
| values | back to summary |
|---|---|
| public static UIViewParameter. | |
Inner class to encapsulate a
UIViewParameter instance so that it may be safely
referenced regardless of whether or not the current view is the
same as the view in which this UIViewParameter
resides.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private StateHolderSaver | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | Reference(FacesContext
the context, UIViewParameter FacesContextfor this requestthe UIViewParameter. param, int the index of the
indexInParent, String UIViewParameter in its parent
UIPanel.the viewId of the view in
which the viewIdAtTimeOfConstruction)UIViewParameter is included. This may
not be the same as the viewId from the context
argument.Construct a reference to a
|
| Modifier and Type | Method and Description |
|---|---|
| public UIViewParameter | Returns: the UIViewParameter.the context)FacesContextfor this requestReturn the
|
| indexInParent | back to summary |
|---|---|
| private int indexInParent | |
| saver | back to summary |
|---|---|
| private StateHolderSaver saver | |
| viewIdAtTimeOfConstruction | back to summary |
|---|---|
| private String viewIdAtTimeOfConstruction | |
| Reference | back to summary |
|---|---|
| public Reference(FacesContext context, UIViewParameter param, int indexInParent, String viewIdAtTimeOfConstruction) Construct a reference to a
| |
| getUIViewParameter | back to summary |
|---|---|
| public UIViewParameter getUIViewParameter(FacesContext context) Return the
| |