I am very new to promefaces and trying to understand various layouts options.
My requirement is following-
1. I have a header section which goes at top across the page.
2. Then a menu Item, that I want to appear below header across the page
Below the menu, to the left hand side I want a left section to display a navigation/search items.
Remaining space to the right of is used for displaying main content.
I have tried to depict my design below (excuse me for crudeness, I was not sure how I could upload a screenshot)
|----------------------------------------------------------------------------------------------------
|Top element
-------------------------------------------------------------------------------------------------------
|Menu Item
|-----------------------------------------------------------------------------------------------------
|>>>>>>>>>>>>>>>|
| LEFT SECTION>>|...................... Right Section
|>>>>>>>>>>>>>>>|
|>>>>>>>>>>>>>>>|
This is what I have been given to work with-
Code: Select all
<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.prime.com.tr/ui">
<f:view contentType="text/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Portal</title>
<link rel="stylesheet" href="${request.contextPath}/css/screen.css" type="text/css"
media="screen, projection"/>
<link rel="stylesheet" href="${request.contextPath}/css/print.css" type="text/css" media="print"/>
<ui:insert name="headIncludes"/>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="top" height="75" resizable="false" closable="false" collapsible="false">
<div>
<table>
<tr>
<td align="left">
<a href="logo.png" alt="Portal Home"/> </a>
</td>
<td align="center">
<h3>Portal</h3>
</td>
<td align="right">
<c:if test="${not empty currentUser.name}">
Welcome
</c:if>
</td>
</tr>
</table>
</div>
</p:layoutUnit>
<p:layoutUnit position="left" width="300" resizable="false" closable="false" collapsible="false">
<div id="leftContent">
<div align="left">
<ui:insert name="leftContent"></ui:insert>
</div>
</div>
</p:layoutUnit>
<p:layoutUnit position="center" scrollable="true">
<div align="left" class="container">
<p:menubar id="menu">
<p:submenu label="Home">
<p:menuitem value="Home">
<h:outputLink value="home">
<h:outputText value="home"/>
</h:outputLink>
</p:menuitem>
</p:submenu>
<!-- view the users menuitem as an example, this is just a placeholder -->
-----
-----
-----
</p:menubar>
</div>
</p:layoutUnit>
</p:layout>
</h:body>
</f:view>
</html>
Can someone provide some input regarding above please.
Thanks