Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Clay - java.lang.StackOverflowError

    2 answers - 538 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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
    message
    Hi,
    I am using Clay to make a Tile-like template with a deep of 2 levels and I
    get a java.lang.SError.
    Should I increase it size by using the max stack memory size parameter of
    the jre? Have you someone else got this error before ?
  • No.1 | | 881 bytes | |

    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.

    12/5/05, Gary VanMatre <gvanmatre (AT) comcast (DOT) netwrote:

    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
    message

    Hi,

    I am using Clay to make a Tile-like template with a deep of 2 levels and
    I
    get a java.lang.SError.
    Should I increase it size by using the max stack memory size parameter
    of
    the jre? Have you someone else got this error before ?
  • No.2 | | 2282 bytes | |

    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="/"
    />
    <set name="complement" value="/"
    />
    <set name="information"
    value="/" />
    </symbols>
    </component>

    <component jsfid=""
    extends="baseLayout">
    <symbols>
    <set name="titre" value="Accueil - Portail des services
    " />
    <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?

    12/5/05, Alexandre Poitras <alexandre.poitras (AT) gmail (DOT) comwrote:

    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.
    >
    >
    >

    12/5/05, Gary VanMatre <gvanmatre (AT) comcast (DOT) netwrote:

    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
    message

    Hi,

    I am using Clay to make a Tile-like template with a deep of 2 levels
    and I
    get a java.lang.SError.
    Should I increase it size by using the max stack memory size parameter
    of
    the jre? Have you someone else got this error before ?

Re: Clay - java.lang.StackOverflowError


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "Java"

EMSDN.COM