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"
<html xmlns=""
<ui:composition template="./template.xhtml">
<ui:define name="content">
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.
Search WWH ::

Custom Search