Name
<f:view>
Synopsis
This action represents an
instance of the component type registered with the type ID
javax.faces.ViewRoot
(by default, an instance of
the javax.faces.component.UIViewRoot
class).
The action creates an instance of the component class to hold all components that are part of the view and sets the view’s locale to the specified value.
Syntax
<f:view [locale="locale"]>
JSF component action elements, template text and/or non-JSF action elements
</f:view>
Attributes
Attribute Name |
Java Type |
Dynamic Value Accepted |
Description |
locale |
String or java.util.Locale
|
Any |
A locale to be used instead of the default. |
Example
<f:view locale="#{user.locale}"> ... </f:view>
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.