According to the user manual, i did the following steps.
1. downoad the theme jar, and set into the classpath
2. add a context-param in web.xml , like this
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>start</param-value>
</context-param>
here are the develop environment infos.
Code: Select all
IDE : Eclipse 3.7 indigo
Web Container : Oracle WebLogic 12C
JSF Runtime : Oracle WebLogic Shared Library , it's a default choice
Primeface : 3.0RC2
theme jar : start-1.0.2.jar
Code: Select all
<!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://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
<head>
<title><h:outputText value="#{msg.welcomeTitle}" /></title>
</head>
<body>
<p:layout fullPage="true">
<p:layoutUnit position="north" size="100" header="Top" resizable="true" closable="true" collapsible="true">
<h:outputText value="Top unit content." />
</p:layoutUnit>
<p:layoutUnit position="south" size="100" header="Bottom" resizable="true" closable="true" collapsible="true">
<h:outputText value="South unit content." />
</p:layoutUnit>
<p:layoutUnit position="west" size="200" header="Left" resizable="true" closable="true" collapsible="true">
</p:layoutUnit>
<p:layoutUnit position="east" size="200" header="Right" resizable="true" closable="true" collapsible="true" effect="drop">
<h:outputText value="Right unit content." />
</p:layoutUnit>
<p:layoutUnit position="center">
<h:form>
This fullPage layout consists of five different layoutUnits which are resizable and closable by default.
</h:form>
</p:layoutUnit>
</p:layout>
</body>
</html>