DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38421

           Summary: Symbol attributes only work as all lower-case
           Product: Struts
           Version: Nightly Build
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Shale
        AssignedTo: dev@struts.apache.org
        ReportedBy: [EMAIL PROTECTED]


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> 

If I try and change the names of the symbols @headercontent, @leftcontent,
@bodycontent, and @footercontent so that some letter in them is capitalized
(I've tried headerContent, heaDercontent, heaDerContent, and other variations to
make sure there's nothing special going on), 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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to