You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leon Derks <le...@cumquat.nl> on 2008/09/25 16:34:53 UTC

Include multiple css in @IncludeStylesheet

Hello

How can I add multiple stylesheets to the @includeSysheet annotation?
In the documentation I read that one or more paths can be injected. But 
how can I do that?

For example I want something like this:
@IncludeStylesheet("context:css/page.css",  
"context:css/tapestry-custom.css")

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Include multiple css in @IncludeStylesheet

Posted by Hugues Narjoux <hu...@gmail.com>.
Hi,

Yous imply need to surround them with {}. Like this :
@IncludeStylesheet( { "context:css/page.css",
 "context:css/tapestry-custom.css" } )




On Thu, Sep 25, 2008 at 4:34 PM, Leon Derks <le...@cumquat.nl> wrote:

> Hello
>
> How can I add multiple stylesheets to the @includeSysheet annotation?
> In the documentation I read that one or more paths can be injected. But how
> can I do that?
>
> For example I want something like this:
> @IncludeStylesheet("context:css/page.css",
>  "context:css/tapestry-custom.css")
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Include multiple css in @IncludeStylesheet

Posted by Keith Bottner <kb...@gmail.com>.
I had this same problem. You were close. Try this.

@IncludeStylesheet({"context:css/page.css", "context:css/tapestry- 
custom.css"})

It takes an array so you need to have the curly braces on the outside  
of your comma delimited style sheets.

Keith

On Sep 25, 2008, at 9:34 AM, Leon Derks wrote:

> Hello
>
> How can I add multiple stylesheets to the @includeSysheet annotation?
> In the documentation I read that one or more paths can be injected.  
> But how can I do that?
>
> For example I want something like this:
> @IncludeStylesheet("context:css/page.css",  "context:css/tapestry- 
> custom.css")
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Include multiple css in @IncludeStylesheet

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
have you tried this:

@IncludeStylesheet({"first.css","second.css","third.css"})

g,
kris




Leon Derks <le...@cumquat.nl> 
25.09.2008 16:34
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
Tapestry users <us...@tapestry.apache.org>
Kopie

Thema
Include multiple css in @IncludeStylesheet







Hello

How can I add multiple stylesheets to the @includeSysheet annotation?
In the documentation I read that one or more paths can be injected. But 
how can I do that?

For example I want something like this:
@IncludeStylesheet("context:css/page.css", 
"context:css/tapestry-custom.css")

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org