Sitemesh with two JSF pages
Florian <[email protected]> Fri, 05 Aug 2005 21:11:53 CDT
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <3563700.1123294734461.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi,
I'm new to Sitemesh, just tried a little bit with JSF und everythink was fine until i tried to "include" 2 JSF Pages.
I have the following decorator (main.jsp):
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>
<html>
<head>
<title><decorator:title default="Welcome" /></title>
<decorator:head />
</head>
<body>
<table width="100%" height="100%" style="background-color:red" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" style="background-color:green;height:20%;width:100%" colspan="2">
<page:applyDecorator page="/faces/header.jspx" name="header" />
</td>
</tr>
<tr>
<td align="bgcenter" style="background-color:blue;height:80%;width:20%">
<page:applyDecorator page="/faces/menu.jspx" name="menu" />
</td>
<td style="background-color:yellow;height:80%;width:80%">
<decorator:body/>
</td>
</tr>
</table>
</body>
</html>
It's an Table with the first row should be the header (an JSF-page) and the second row is divided in 2 parts (columns) on the left the menu (an JSG-page) and on the right the body.
But including menu and header as JSF-Pages doesn't fit. Is there any possibility?
Or does JSF only work fine as Page of <decorator:body/> (this works fine) ?
regards
Florian
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=5157&messageID=12249#12249
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]