Name

UIForm

Synopsis

This class represents a form component. A form component acts as a container for other components, typically input components, and ensures that input component children process input only when the form they belong to is the submitted form. The default rendererType is javax.faces.Form.

Class name:

javax.faces.component.UIForm

Extends:

javax.faces.component.UIComponentBase

Implements:

javax.faces.component.NamingContainer, javax.faces.component.StateHolder

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.Form.

public static String COMPONENT_TYPE

The component family: javax.faces.Form.

Constructor

public UIForm()

Creates a new instance.

Methods

public String getFamily()

Returns the component family ID.

public boolean isSubmitted()

Returns true if submitting this form triggered the current request.

public void processDecodes(javax.faces.context.FacesContext context)

Call to the decode() method for this component to ensure that the submitted property is set before decoding the children. If the submitted property is set to true, calls getFacetsAndChildren() and then calls the processDecodes() method on each returned facet and component.

public void processUpdates(javax.faces.context.FacesContext context)

If the submitted property is set to true, calls getFacetsAndChildren( ) and then calls the processUpdates() method on each returned facet and component.

public void processValidators(javax.faces.context.FacesContext context)

If the ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.