Jsf Tag Library

Jsf is provided with tag libraries which makes easy for devloper for creating UI pages. With Jsf Tag library it also support JSTL Core and Function library.

Available Jsf Tag Library:

Library URI Prefix
JSF core http://java.sun.com/jsf/core f
JSF html http://java.sun.com/jsf/html h
JSF composite http://java.sun.com/jsf/composite composite
JSF ui (Template and Non Template Facelet Tag) http://java.sun.com/jsf/facelets ui
JSTL core http://java.sun.com/jsp/jstl/core c
JSTL functions http://java.sun.com/jsp/jstl/functions fn

Facelet template and nontemplate tags.

If we want to use any of the above on JSP then we need to use tag lib directive:

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

If we want to use the same on xhtml pages then we need to inculde the same as:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" />