Hi, all!

I'm converting some old appfuse project which use sitemesh.
In the default sitemesh decorator we have:
[QUOTE]

    <head>
        <%@ include file="/common/meta.jsp" %>
        <title><decorator:title/> | <fmt:message key="webapp.name"/></title>

[/QUOTE]

My idea is to use the classic border-template.htm
[QUOTE]
    <head>
        #include ("/assets/common/meta.html")
        <title>$title | $webAppName</title>
[/QUOTE]
And set:
webAppName in BorderPage
title in the other Pages

But when working with forms and other pages  (comes the problems), for example:

[QUOTE]
User Profile form
<head>
    <title><fmt:message key="userProfile.title"/></title>
    <meta name="heading" content="<fmt:message key='userProfile.heading'/>"/>
    <meta name="menu" content="UserMenu"/>
</head>
[/QUOTE]

Which will be merged with the default sitemesh decorator:
[QUOTE]
        <div id="content" class="clearfix">
            <div id="main">
                <%@ include file="/common/messages.jsp" %>
                <h1><decorator:getProperty property="meta.heading"/></h1>
                <decorator:body/>
            </div>
[/QUOTE]

In the classic border-template.htm:
[QUOTE]
        <div id="content" class="clearfix">
            <div id="main">
                #parse(${path})
            </div>

[/QUOTE]

And try to define these (meta.heading, meta.menu) in the correspondent
click page, but how can I set/get those HEAD elements in java page?


Other thing, what's the correspondent in velocity to this jstl :
<c:url value='/?locale=en'/>

I've tried: <a href="$link.setRelative("/").addQueryData("locale","en")">
without success. :(

Regards,

Gilberto

Reply via email to