The term Facelets refers to the view declaration language for JavaServer Faces technology.
Facelets is a page declaration language that is used to build JavaServer Faces views using HTML style templates and to build component trees.
Facelets can be use with JSF 1.1 and higher and is a part of JSF 2.0.
Facelets features include the following:
Facelets technology offers several advantages.
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
Hello from Facelets
</h:body>
</html>