UI-Component Sets
Project Documentation

Summary

Tag name: <f:view>
UIComponent class: javax.faces.component.UIViewRoot
Tag class: org.apache.myfaces.taglib.core.ViewTag
Facelet Tag Handler: org.apache.myfaces.view.facelets.tag.jsf.core.ViewHandler
Component type: javax.faces.ViewRoot
Component family: javax.faces.ViewRoot

Creates a JSF View, which is a container that holds all of the components that are part of the view.

Unless otherwise specified, all attributes accept static values or EL expressions.

See the javadoc for this class in the JSF Specification for further details.

Attributes

Name Type Supports EL? Description
afterPhase javax.el.MethodExpression Only EL MethodBinding pointing to a method that takes a javax.faces.event.PhaseEvent and returns void, called after every phase except for restore view.
beforePhase javax.el.MethodExpression Only EL MethodBinding pointing to a method that takes a javax.faces.event.PhaseEvent and returns void, called before every phase except for restore view.
locale java.util.Locale Yes The locale for this view.

Defaults to the default locale specified in the faces configuration file.

renderKitId String Yes Defines what renderkit should be used to render this view.

Facelets Attributes

Name Type Required Description
contentType false
encoding false
transient false