JSF facet Tag

This tag is used to add a facet to the component means this tag is used to add its child as a facet of the closest parent component. With the help of this tag we can add header and footer facet to the container component like panelGroup.

Code Description :

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
























Rendered Output :

Html Source Code :






























header facet
footer facet
First Name
Last Name
Address




This tag contains one attribute :

name : This is the required attribute and is used to set the name of the facet. "header" and "footer" values can be used for this attribute.

0 comments:

Post a Comment