Java Reference
In-Depth Information
After deploying our application, we can see templating in action by pointing the
browser to our template client URL.
We can see that NetBeans generated a template that allows us to create a fairly
elegant page with very little effort on our part. Of course, we should replace the
markup in the <ui:define> tags to suit our needs.
Here is a modified version of our template, adding markup to be rendered in the
corresponding places in the template:
<?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:ui="http://xmlns.jcp.org/jsf/facelets">
<body>
<ui:composition template="./template.xhtml">
<ui:define name="content">
<p>
In this main area we would put our main text,
images, forms, etc. In this example we will simply use the typical
filler text that web designers love to use.
</p>
<p>
 
Search WWH ::




Custom Search