UIForm is a UIComponent that represents an input form to be
presented to the user, and whose child components represent (among other things) the input fields to be included when
the form is submitted.
By default, the rendererType property must be set to "jakarta.faces.Form". This value can
be changed by calling the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | UIForm.PropertyKeys
Properties that are tracked by state saving. |
| Modifier and Type | Field 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a unique-id in this component-containerFacesContext context, String an optional seed value - e.g. based on the position of the component in the VDL-template seed)Implements jakarta. Generate an identifier for a component. |
| public String | getContainerClientId(FacesContext
the Faces context. context)Overrides jakarta.
Override the |
| public String | getFamily()
Implements abstract jakarta. Return the identifier of the component family to which this component belongs. |
| private Integer | |
| public boolean | invokeOnComponent(FacesContext
the context, String FacesContext for the current requestthe client identifier of the component to be passed to the argument callback. clientId, ContextCallback an implementation of the Callback interface. callback)Overrides jakarta.
Starting at this component in the View hierarchy, search for a component
with a |
| public boolean | |
| public boolean | Returns: true if the form was submitted, false otherwise.
Returns the current value of the |
| public void | processDecodes(FacesContext
FacesContext for the request we are processingOverrides jakarta.
Override |
| public void | processUpdates(FacesContext
FacesContext for the request we are processingOverrides jakarta.
Override |
| public void | processValidators(FacesContext
FacesContext for the request we are processingOverrides jakarta.
Override |
| private void | |
| public void | setPrependId(boolean
true if it is, false otherwise.Set whether the id should be prepended. |
| public void | setSubmitted(boolean
the new value of the submitted flag. submitted)
If this |
| public boolean | visitTree(VisitContext
the context, VisitCallback VisitContext for this visitthe callback)VisitCallback instance whose visit method will be called for each node
visited.Overrides jakarta. Perform a tree visit starting at this node in the tree. |
| COMPONENT_FAMILY | back to summary |
|---|---|
| public static final String COMPONENT_FAMILY The standard component family for this component. | |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE The standard component type for this component. | |
| UIForm | back to summary |
|---|---|
| public UIForm()
Create a new | |
| createUniqueId | back to summary |
|---|---|
| public String createUniqueId(FacesContext context, String seed) Implements jakarta. Generate an identifier for a component. The identifier will be prefixed with UNIQUE_ID_PREFIX, and will be unique within this component-container. Optionally, a unique seed value can be supplied by component creators which should be included in the generated unique id.
If the
| |
| getContainerClientId | back to summary |
|---|---|
| public String getContainerClientId(FacesContext context) Overrides jakarta.
Override the
| |
| getFamily | back to summary |
|---|---|
| public String getFamily() Implements abstract jakarta. Doc from jakarta.
Return the identifier of the component family to which this component belongs. This identifier, in conjunction with
the value of the | |
| getLastId | back to summary |
|---|---|
| private Integer getLastId() | |
| invokeOnComponent | back to summary |
|---|---|
| public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException Overrides jakarta. Doc from jakarta.
Starting at this component in the View hierarchy, search for a component
with a
The default implementation will first check if
Otherwise, for each component returned by
When calling
If none of the elements from
Simple usage example to find a component by
| |
| isPrependId | back to summary |
|---|---|
| public boolean isPrependId() Is the id prepended.
| |
| isSubmitted | back to summary |
|---|---|
| public boolean isSubmitted()
Returns the current value of the
This property must be kept as a transient property using the
| |
| processDecodes | back to summary |
|---|---|
| public void processDecodes(FacesContext context) Overrides jakarta.
Override
| |
| processUpdates | back to summary |
|---|---|
| public void processUpdates(FacesContext context) Overrides jakarta.
Override
| |
| processValidators | back to summary |
|---|---|
| public void processValidators(FacesContext context) Overrides jakarta.
Override
| |
| setLastId | back to summary |
|---|---|
| private void setLastId(Integer lastId) | |
| setPrependId | back to summary |
|---|---|
| public void setPrependId(boolean prependId) Set whether the id should be prepended.
| |
| setSubmitted | back to summary |
|---|---|
| public void setSubmitted(boolean submitted)
If this
The value of a
This property must be kept as a transient property using the
| |
| visitTree | back to summary |
|---|---|
| public boolean visitTree(VisitContext context, VisitCallback callback) Overrides jakarta. Doc from jakarta. Perform a tree visit starting at this node in the tree.
UIComponent.visitTree() implementations do not invoke the UIComponent.visitTree() implementations must call UIComponent.pushComponentToEL() before performing the visit and UIComponent.popComponentFromEL() after the visit.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UIForm. | lastId
Last id vended by |
| public static final UIForm. | prependId
The prependId flag. |
| public static final UIForm. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UIForm. | |
| public static UIForm. |
| lastId | back to summary |
|---|---|
| public static final UIForm.
Last id vended by | |
| prependId | back to summary |
|---|---|
| public static final UIForm. The prependId flag. | |
| submitted | back to summary |
|---|---|
| public static final UIForm. | |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| valueOf | back to summary |
|---|---|
| public static UIForm. | |
| values | back to summary |
|---|---|
| public static UIForm. | |