Library | Description |
---|---|
faces |
Jakarta Faces Passthrough Elements Tag Library The presence of an
attribute from this namespace on an otherwise non-Faces aware
markup element indicates that the markup element must be treated
as a Faces component that will be rendered equivalently to what is
specified directly in the Facelet page, with the added benefit
of being associated with a server side Please see the documentation for Java class |
ui |
Jakarta Faces Facelets Tag Library The tags in this library add templating — a powerful view composition technique — to Faces. Templating is so useful that there are entire frameworks, such as Tiles and SiteMesh, that are built around the concept of templating. So what is templating, how can you benefit from it, and how does this tag library implement it? If you've used Jakarta Server Pages before, you've probably used This tab library contains a tag — A Templating ExampleFirst, we define a template:
In the preceeding listing, we've defined a layout, also known as a
template. That template uses the
The title, heading, and content pieces of the page referenced in the template are defined in a separate XHTML file in a composition, like this:
At runtime, Faces synthesizes the two previous XHTML pages to create a
single Faces view by inserting the
pieces defined in the composition into the template (that template is
layout.xhtml, which is the first
listing above). Faces also disregards everything outside of the So why do we have two XHTML pages to define a single view? Why not simply take the pieces and manually insert them into the layout so that we have only a single XHTML page? The answer is simple: we have separated layout from the content so that we can reuse that layout among multiple compositions. For example, now we can define another composition that uses the same layout:
By encapsulating the layout, we can reuse that layout among multiple
compositions. Just like
|
f |
Jakarta Faces Core Tag Library The core Jakarta Faces tags that are independent of any particular RenderKit. |
h |
Jakarta Faces HTML Tag Library This tag library contains Jakarta Faces component tags for all UIComponent + HTML RenderKit Renderer combinations as defined in section 9.5 "Standard HTML RenderKit Tag Library" of the Jakarta Faces Specification Document. |
pt |
Jakarta Faces Passthrough Attributes Tag Library Facelet tag attributes in
this namespace must be added to the pass through attribute map
on the Usage example
Would cause |
cc |
Jakarta Faces Composite Components Tag Library Describes the tag library used for declaring and defining the usage contract for composite UI Components. When authoring a composite component, use of this tag library is largely optional, though always recommended. Declaring and defining a composite component with this taglib provides valuable information about the component that can be used by tools and users of the composite component. In most cases, a composite component can be authored without declaring and defining its usage contract with this taglib. Creating a Composite ComponentA composite component is declared by creating a Facelets file inside of a resource library. (See section 2.6 "Resource Handling" of the Jakarta Faces Specification Document for more information about resource libraries.) A composite component must reside within a resource library. It is not possible to create a composite component without putting it inside of a resource library. The default XML namespace URI of the taglib that contains the
composite component, for use in the using page, is
This declares that any Facelets file in the resource
library called
The implementation must also support declaring the namespace of the tag library in a Faces VDL tag library descriptor. This descriptor file is optional and is useful for component vendors that do not want to use the default XML namespace. This version of the proposal currently uses the facelet taglib descriptor syntax. For example:
Components from that taglibrary may be used in a using page by declaring them in the XML namespace for that view:
The values for attributes in a composite component VDL file can be
fully localized by putting them inside a ResourceBundle in the same
directory as the VDL view and accessing them with the per-component
resource bundle syntax. Consider the file
In this case, In the same
The normal localization rules for Refer to the |
c |
Jakarta Tags Core Tag Library |
fn |
Jakarta Tags Functions Tag Library |