pretty easy in appfuse 1.x
1) create a new jsp(decorator) under /web/decorators/ (u may
reference default.jsp as your template)
e.g. minimum.jsp
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<%@ include file="/common/meta.jsp" %>
<title><decorator:title/> | <fmt:message key="webapp.name"/></title>
<link rel="stylesheet" type="text/css" media="all" href="<c:url
value='/styles/${appConfig["csstheme"]}/theme.css'/>" />
<link rel="stylesheet" type="text/css" media="print"
href="<c:url value='/styles/${appConfig["csstheme"]}/print.css'/>" />
<script type="text/javascript" src="<c:url
value='/scripts/prototype.js'/>"></script>
<script type="text/javascript" src="<c:url
value='/scripts/scriptaculous.js'/>"></script>
<script type="text/javascript" src="<c:url
value='/scripts/global.js'/>"></script>
<decorator:head/>
</head>
<body<decorator:getProperty property="body.id"
writeEntireProperty="true"/><decorator:getProperty
property="body.class" writeEntireProperty="true"/>>
<div id="page">
<div id="content" class="clearfix">
<div id="main">
<h1><decorator:getProperty property="page.heading"/></h1>
<decorator:body/>
</div>
</div>
</div>
</body>
</html>
2) in web/WEB-INF/decorators.xml , specify your url patterns
<decorators defaultdir="/decorators">
<excludes>
<pattern>/resources/*</pattern>
<pattern>/excludeme*</pattern>
</excludes>
<decorator name="default" page="default.jsp">
<pattern>/*</pattern>
</decorator>
<decorator name="minimum" page="minimum.jsp">
<pattern>/*MyPage*</pattern>
</decorator>
</decorators>
On 2007-06-20 18:10:55 +0800, "mark.forster"
<[EMAIL PROTECTED]> said:
Hi, i am having the same problem.
Could you let me know how you solved this
thanks ;-)
andrea cossu-2 wrote:
Ok, i discovered what i have to do! :-)
andrea
--
andrea cossu
"andrea cossu" <[EMAIL PROTECTED]> ha scritto nel
messaggio news:[EMAIL PROTECTED]
I need to apply a my own decorator to a particular jsp page (report page)
located in /pages as the others jsp
What i have to do?
tnks
--
andrea cossu
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]