List the JSF facelets tags and explain any two.
JSF Faelets
- JSF provides special tags to create common layout for a web application called facelets tags
- These tags provide flexibility to manage common parts of multiple pages at one place.
- Facelets is a powerful but lightweight page declaration language that is used to build JavaServer Faces views using HTML style templates and to build component trees.
- For these tags, you need to use the following namespaces of URI in html node
-
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets">
JSF Facelet Tags
Sr |
Tag |
Description |
1 |
ui:insert |
Inserts content into a template. That content is define with theui:definetag |
2 |
ui:define |
The define tag defines content that is inserted into a page by a template |
3 |
ui:composition |
The <ui:composition> tag provides a template encapsulating the content to be included in the other facelet |
4 |
ui:include |
This tag includes the component in the src attribute as a part of the current JSF page |