<anyxmlelement xmlns:f="http://xmlns.jcp.org/jsf/core"/>
The core JavaServer Faces custom actions that are independent of any particular RenderKit.
Info | Value |
---|---|
ID (tag prefix) | f |
URI | http://xmlns.jcp.org/jsf/core |
Tag | Description |
---|---|
actionListener |
Register an ActionListener instance on the UIComponent associated with the closest parent UIComponent custom action. |
ajax |
Register an AjaxBehavior instance on one or more UIComponents implementing the ClientBehaviorHolder interface. This tag may be nested witin a single component (enabling Ajax for a single component), or it may be "wrapped" around multiple components (enabling Ajax for many components). The String value for ids
specified for execute and render may be specified as a search
expression as outlined in the JavaDocs for
When the button is pressed, panel_1, in form_1 will be re-rendered, along with panel_2 in form_2. |
attribute |
Add an attribute to the UIComponent associated with the closest parent UIComponent custom action. |
attributes |
Add attributes to the UIComponent associated with the closest
parent UIComponent custom action.
For each |
convertDateTime |
Register a DateTimeConverter instance on the UIComponent associated with the closest parent UIComponent custom action. |
convertNumber | Register a NumberConverter instance on the UIComponent associated with the closest parent UIComponent custom action. |
converter |
Register a named Converter instance on the UIComponent associated with the closest parent UIComponent custom action. |
event |
Allow JSF page authors to
install |
facet |
Register a named facet on the UIComponent associated with the closest parent UIComponent custom action. When the facet contains more than one child the children will be automatically put in a container UIPanel. |
importConstants |
Used inside of the metadata facet of a view, this tag will import a mapping of all constant field values of the given type in the current view.
Constant field values are all |
loadBundle |
Load a resource bundle localized for the Locale of the current view, and expose it as a java.util.Map in the request attributes of the current request under the key specified by the value of the "var" attribute of this tag. The Map must behave such that if a get() call is made for a key that does not exist in the Map, the literal string ???KEY??? is returned from the Map, where KEY is the key being looked up in the Map, instead of a MissingResourceException being thrown. If the ResourceBundle does not exist, a JspException must be thrown. |
metadata |
Declare the metadata
facet for this view. This must be a child of the
The implementation must allow templating for this element according to the following pattern. template client XHTML view, view01.xhtml
Note line 4. The page author must ensure that the
The template page, template.xhtml
The page author is not required to use
templating, but if
they do, it must be done as shown above, (or with
|
param |
Add a child UIParameter component to the UIComponent associated with the closest parent UIComponent custom action. |
passThroughAttribute |
Add an attribute to the
|
passThroughAttributes |
Add attributes to the
|
phaseListener |
Register a PhaseListener instance on the UIViewRoot in which this tag is nested. |
selectItem |
Add a child UISelectItem component to the UIComponent associated with the closest parent UIComponent custom action. |
selectItems |
Add a child UISelectItems component to the UIComponent associated with the closed parent UIComponent custom action. When iterating over the
select items, Version 2 of the specification introduces several new attributes, described below. These are: var, itemValue, itemLabel, itemDescription, itemDisabled, and itemLabelEscaped. |
setPropertyActionListener |
Register an ActionListener instance on the UIComponent associated with the closest parent UIComponent custom action. This actionListener will cause the value given by the "value" attribute to be set into the ValueExpression given by the "target" attribute. The implementation of this tag creates a special
The
|
subview |
Container action for all JavaServer Faces core and custom component actions used on a nested page via "jsp:include" or any custom action that dynamically includes another page from the same web application, such as JSTL's "c:import". |
validateBean |
A validator that
delegates the validation of the local value to the Bean
Validation API. The validationGroups attribute serves as a
filter that instructs the Bean Validation API which
contraints to enforce. If there are any constraint
violations reported by Bean Validation, the value is
considered invalid. An
instance of this validator can participate in class-level
validation provided the preconditions mentioned in
|
validateDoubleRange |
Register a DoubleRangeValidator instance on the UIComponent associated with the closest parent UIComponent custom action. |
validateLength |
Register a LengthValidator instance on the UIComponent associated with the closest parent UIComponent custom action. |
validateLongRange |
Register a LongRangeValidator instance on the UIComponent associated with the closest parent UIComponent custom action. |
validateRegex | A validator that uses the pattern attribute to validate the wrapping component. The entire pattern is matched against the String value of the component. If it matches, it's valid. |
validateRequired |
A validator that enforces the presence of a value. It has the same affect as setting the required attribute on a UIInput to true. |
validateWholeBean |
Support multi-field validation
by enabling class-level bean validation on CDI based backing
beans. This feature causes a temporary copy of the bean
referenced by the At a high level, the feature provides for
a This tag must be backed by a
The wholeBeanValidator must have
a
Resolve the Otherwise it can be assumed that all field-level validations for this class-level validation have passed. Class-level bean validation must operate on a sufficiently populated bean instance. This differs from Faces field-level validation, which prevents beans from being populated with invalid values. To accomodate this difference, the candidate bean must be copied, populated with the already-validated candidate values, and then subjected to class-level validation. The copying must proceed in the following order. Populate the copied bean with the candidate values. Obtain a reference to
a Obtain the value of the Call the If the
returned This tag must be placed in the component tree after all of the fields that are to be included in the multi-field validation. If this precondition is not met, the results of applying this tag are unspecified. This tag must be used in concert
with First, the
Note that a Next, the
Now the backing bean constrained by
this
Finally, the Facelets view.
|
validator |
Register a named Validator instance on the UIComponent associated with the closest parent UIComponent custom action. Usage outside of an If this element is nested within a
|
valueChangeListener |
Register a ValueChangeListener instance on the UIComponent associated with the closest parent UIComponent custom action. |
verbatim |
The use of this element has been deprecated in Facelets for Faces. Create and register a child UIOutput component associated with the closest parent UIComponent custom action, which renders nested body content. |
view |
Container for all JavaServer Faces core and custom component actions used on a page. |
viewAction | This action component specifies an application-specific command (or action), using an EL method expression, to be invoked during one of the Faces lifecycle phases, by default Invoke Application. |
viewParam |
Used inside of the
metadata facet of a view, this tag causes a UIViewParameter
to be attached as metadata for the current view. Because
|
websocket |
Registers a websocket push
connection in client side by rendering the necessary scripts.
Push messages can be sent from server side via
|