Hi,

Me again :)

I have tried to use symbols like you suggested to built a layout system.
Everything seems to work great except my symbols are not resolved :

Here's my code :

page1.xml :

<?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE view PUBLIC
      "-//Apache Software Foundation//DTD Shale Clay View Configuration 1.0
//EN"
      "http://struts.apache.org/dtds/shale-clay-config_1_0.dtd";>
<view>
    <component jsfid="/page1.xml" extends="baseLayout">
        <symbols>
            <set name="titre" value="Test" />
            <set name="contenu" value="page1.html" />
        </symbols>
    </component>
</view>

in my global clay-config.xml :
   <component jsfid="baseLayout" extends="clay">
       <attributes>
           <set name="clayJsfid" value="/gabarit/gabarit.html"/>
       </attributes>

   </component>


gabarit.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="fr" lang="fr">


<head><title>@titre</title></head>

<body><span jsfid="clay" clayJsfid="@contenu"  allowBody="false"></body>
</html>

Then I receive the error that the component '@contenu' doesn't exist so it's
mean my symbols are not resolved.
Any ideas of what is wrong???
--
Alexandre Poitras
Québec, Canada

Reply via email to