Name

UIViewRoot

Synopsis

This class represents a view root component. A view root component sits at the top of the component tree and acts as the container for all the other components in the view. It’s not rendered.

Class name:

javax.faces.component.UIViewRoot

Extends:

javax.faces.component.UIComponentBase

Implements:

javax.faces.component.StateHolder

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.ViewRoot.

public static String COMPONENT_TYPE

The component family: javax.faces.View.

public static String UNIQUE_ID_PREFIX

The prefix used for automatically created component IDs: _id.

Constructor

public UIViewRoot()

Creates a new instance.

Methods

public String createUniqueId()

Returns an automatically generated component ID that is unique within the view, prefixed with UNIQUE_ID_PREFIX.

public void encodeBegin()

Resets the state used by createUniqueId().

public String getFamily()

Returns the component family ID.

public java.util.Locale getLocale()

Returns the view’s Locale, calculated by ViewHandler calculateLocale() if not set.

public String getRenderKitId()

Returns the view’s render kit ID or RenderKitFactory.HTML_BASIC_RENDER_KIT if not set.

public String getViewId()

Returns the view ID.

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

Iterates over all events queued for any phase and call the broadcast() method on the source component for each, and then does the same for all events queued for the Invoke Application phase. ...

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.