By the way, a nice enhancement would be to be able to declare components in
a XML view. Something like that :

<view>
       <component jsfid="contenuSelectServices" extends="baseContenuLayout">
        <symbols>
            <set name="navigation" value="/gabarit/contenu/navigation.html"
/>
            <set name="complement" value="/gabarit/contenu/complement.html"
/>
            <set name="information"
value="/panneaux/services/selectServices.html" />
        </symbols>
    </component>

    <component jsfid="pages/services/selectServices.xml"
extends="baseLayout">
        <symbols>
            <set name="titre" value="Accueil - Portail des services
ministériels" />
            <set name="entete" value="/gabarit/entete.html" />
            <set name="piv" value="/gabarit/piv.html" />
            <set name="ivpied" value="/gabarit/pivpied.html" />
            <set name="contenu" value="contenuSelectServices" />
        </symbols>
    </component>
</view>

Because right now I have to keep so many xml files just to have a template
engine with more then one level. What would be nice is to be able to define
one file per page like in Java where you have one class per file. It would
reduce the number of xml files while being more clean then the Tiles way
(one huge xml file...). Do you think it a good idea and is it doable?

On 12/5/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
>
> I was using a symbol your right.
>
> The first page was loading the component page via a symbol. The component
> page was looking like this :
> component.xml
> <div jsfid="clay" clayJsfId="@component" />
> where component=/component.xml.
>
>
>
> On 12/5/05, Gary VanMatre <[EMAIL PROTECTED]> wrote:
> >
> > I think your problem is that you are using a template that includes the
> > outer template.  Clay will look for circular reference but if the jsfid or
> > clayJsfid is a symbol, the replacement happens after the validation.
> >
> > What does your page/config look like?
> >
> > Gary
> > -------------- Original message --------------
> >
> > > Hi,
> > >
> > > I am using Clay to make a Tile-like template with a deep of 2 levels
> > and I
> > > get a java.lang.StackOverflowError.
> > > Should I increase it size by using the max stack memory size parameter
> > of
> > > the jre? Have you someone else got this error before ?
> > >
> > > --
> > > Alexandre Poitras
> > > Québec, Canada
> > >
> >
>
>
>
> --
> Alexandre Poitras
> Québec, Canada




--
Alexandre Poitras
Québec, Canada

Reply via email to