Java Reference
In-Depth Information
As we can see, the generated application is much more elegant than the JSF
applications we developed in the previous chapter. Web applications developed
using PrimeFaces render this way without any additional effort (no need to use CSS),
since all the CSS and JavaScript is provided by PrimeFaces.
Let's examine the generated welcomePrimefaces.xhtml file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<f:viewcontentType="text/html">
<h:head>
<f:facet name="first">
<meta content='text/html; charset=UTF-8'
http-equiv="Content-Type"/>
<title>PrimeFaces</title>
</f:facet>
</h:head>
<h:body>
<p:layoutfullPage="true">
<p:layoutUnit position="north" size="100"
resizable="true"
closable="true" collapsible="true">
Header
</p:layoutUnit>
<p:layoutUnit position="south" size="100"
closable="true"
collapsible="true">
Footer
</p:layoutUnit>
<p:layoutUnit position="west" size="175" header="Left"
collapsible="true">
<p:menu>
<p:submenu label="Resources">
<p:menuitem value="Demo"
 
Search WWH ::




Custom Search