Tried it. Same result. I'll file a bug report.
[EMAIL PROTECTED] wrote:
Hi
Try and clean out your Tomcat work directory prior to restart after you have
made your changes.
Hermod
-----Original Message-----
From: Richard Wallace [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 12:14 AM
To: Struts Users Mailing List
Subject: [shale] Some Clay oddities
I'm playing with templating using symbol replacement like in the
use-cases. It's very cool and very powerful. A couple of things that
are strange tho:
1) The first letter of the content of the file being used is being
cutoff. So, for instance, I have the clay definition:
<component jsfid="commonPageLayout" extends="clay">
<attributes>
<set name="clayJsfid" value="/templates/common.html" />
</attributes>
<symbols>
<set name="@title" value="#{labels.map['default.title']}" />
<set name="@headercontent"
value="/templates/common/header.html" />
<set name="@leftcontent" value="/templates/common/left.html" />
<set name="@bodycontent" value="space" />
<set name="@footercontent"
value="/templates/common/footer.html" />
</symbols>
</component>
For testing, in left.html and footer.html I just have simple one liners
like "This is the footer. It can be found in /templates/footer.html"
The first letter in "This" is being chopped off so it's displayed as
"his is the footer..." The only one this doesn't happen on is the
header.html which has <img jsfid="image" ...>. That is displayed
totally fine. Is it a rule that these files should begin with some
component or is something else going on?
2) This one is really strange. If I try and change the names of the
symbols @headercontent, @leftcontent, @bodycontent, and @footercontent
so that the C in content is capitalized (@leftContent, etc.), and go
through and change the usage of them _everywhere_ then defining a page
that overrides those settings doesn't work. So normally I might have
something like
<html jsfid="commonPageLayout"
bodycontent="/testtemplatingbody.html"
leftcontent="/templates/blank.html"
allowBody="false">
<head><title>Mock Header</title></head>
<body>The entire document is replaced by the layout.</body>
</html>
And that works great. But if I change all the symbol names to have a
capital C, Clay seems to ignore the settings in the page definition and
just use the default values for commonPageLayout. Weird, huh? Any
ideas what's going on with this one?
Neither one of these is a big problem, just little oddities I've run
into today as I've explored Clay.
Rich
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the virus programs used
in the DnB NOR Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
---------------------------------------------------------------------
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]