HTML and CSS Reference
In-Depth Information
<div id="content" class="center_content">
<ui:insert name="content" />
</div>
</h:body>
</html>
Listing 5-12. File Structure Resource Library Contracts After Adding a “Basic-Plus” Contract
| contracts/
| contracts/basic/page-template.xhtml
| contracts/basic/layout.css
| contracts/basic/page.css
| contracts/basic-plus/page-template.xhtml
| contracts/basic-plus/layout.css
| contracts/basic-plus/page.css
| contracts/basic-plus/logo.png
Listing 5-13. Contents of contracts/basic-plus/page-template.xhtml
<?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:p=" http://xmlns.jcp.org/jsf/passthrough "
xmlns:jsf=" http://xmlns.jcp.org/jsf "
xmlns:ui=" http://xmlns.jcp.org/jsf/facelets "
xmlns:h=" http://xmlns.jcp.org/jsf/html " >
<h:head>
<h:outputStylesheet name="page.css" />
<h:outputStylesheet name="layout.css" />
<title> <ui:insert name="page-title" /> </title>
</h:head>
<h:body>
<div id="top" class="top">
<h:graphicImage id="logo" name="logo.png" />
<ui:insert name="top" />
</div>
<div id="help" class="left">
Welcome to JSF 2.2. This example demonstrates how to use Resource Library Contracts.
</div>
<div id="content" class="right ">
<ui:insert name="content" />
</div>
<div id="top" class="top">
You can find more information about JSF 2.2 at the
<a href=" http://jcp.org/en/jsr/detail?id=344 " >JCP website</a>
</div>
</h:body>
</html>
Search WWH ::




Custom Search