Hello from Facelets
As we can see, a facelet is nothing but an XHTML file using some JSF specific XML
namespaces. In the automatically generated preceding code the following namespace
definition allows us to use the h (for HTML) JSF component library:
The preceding namespace declaration allows us to use JSF specific tags such
as <h:head> and <h:body> , which are a drop-in replacement for the standard
HTML/XHTML <head> and <body> tags, respectively.
Another very commonly used namespace in JSF is the f namespace, which is
typically defined as follows:
The f namespace contains tags that do not render directly in the page, rather it
allows us to specify the items in a drop-down list or, for instance, bind actions
to our JSF components.
The application generated by the new project wizard is a simple but complete JSF
web application. We can see it in action by right-clicking on our project in the project
window and selecting Run . Now, the application server starts (if it wasn't already
running). Then, the application is deployed and the default system browser opens
to display our application's default page.