You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Hermod Opstvedt <he...@opstvedt.com> on 2006/10/16 21:38:35 UTC
Tomahawk t:stylesheet component in Clay
Hi
Since my <link
href="#{facesContext.externalContext.requestContextPath}/theme/styles.css"/>
does not work anymore, I thought I would give the Tomahawk t:stylesheet
component a try. However it does not seem to work properly:
In my Clay template .html file I have:
<span jsfid="clay" clayjsfid="t:stylesheet" path="/theme/styles.css"
allowbody="false"></span>
But instead of rendering:
<link rel="stylesheet" type="text/css" href="/ClayMal/theme/styles.css" />
It renders:
<link rel="stylesheet" type="text/css" href="/ClayMalnull" />
Am I barking up the wrong tree here or is this maybe a bug in Clay or the
tomahawk-1.1.3.xml definition?
Hermod
Re: Tomahawk t:stylesheet component in Clay
Posted by Ryan Wynn <bi...@gmail.com>.
On 10/16/06, Hermod Opstvedt <he...@opstvedt.com> wrote:
> Hi
>
> Since my <link
> href="#{facesContext.externalContext.requestContextPath}/theme/styles.css"/>
> does not work anymore, I thought I would give the Tomahawk t:stylesheet
> component a try. However it does not seem to work properly:
>
> In my Clay template .html file I have:
>
> <span jsfid="clay" clayjsfid="t:stylesheet" path="/theme/styles.css"
> allowbody="false"></span>
I think what you may want here instead is
<span jsfid="t:stylesheet" path="/theme/styles.css" allowBody="false"/>
I think the way you had it path was being interpreted as a symbol
(clay component has no such attribute) instead of a property.
>
> But instead of rendering:
> <link rel="stylesheet" type="text/css" href="/ClayMal/theme/styles.css" />
> It renders:
> <link rel="stylesheet" type="text/css" href="/ClayMalnull" />
>
> Am I barking up the wrong tree here or is this maybe a bug in Clay or the
> tomahawk-1.1.3.xml definition?
>
> Hermod
>
>
SV: Tomahawk t:stylesheet component in Clay
Posted by Hermod Opstvedt <he...@opstvedt.com>.
Hi
I think that this might be a bug in Clay. I have debugged through the
Tomahawk StyleSheet component, and the method setPath on StyleSheet is never
called from Clay.
Hermod
-----Opprinnelig melding-----
Fra: Hermod Opstvedt [mailto:hermod@opstvedt.com]
Sendt: 16. oktober 2006 21:39
Til: user@shale.apache.org
Emne: Tomahawk t:stylesheet component in Clay
Hi
Since my <link
href="#{facesContext.externalContext.requestContextPath}/theme/styles.css"/>
does not work anymore, I thought I would give the Tomahawk t:stylesheet
component a try. However it does not seem to work properly:
In my Clay template .html file I have:
<span jsfid="clay" clayjsfid="t:stylesheet" path="/theme/styles.css"
allowbody="false"></span>
But instead of rendering:
<link rel="stylesheet" type="text/css" href="/ClayMal/theme/styles.css" />
It renders:
<link rel="stylesheet" type="text/css" href="/ClayMalnull" />
Am I barking up the wrong tree here or is this maybe a bug in Clay or the
tomahawk-1.1.3.xml definition?
Hermod