Re: T5 optional css for component

2007-07-02 Thread Kristian Marinkovic
ontributed css file. g, kris "Janko Muzykant" <[EMAIL PROTECTED]> 02.07.2007 14:41 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5 optional css for component hi Marcus, this solution is perfect provided i have a temp

Re: T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi Marcus, this solution is perfect provided i have a template defined separately for each page. but usually this is written once in some "Border" or "Layout" component's template. In such a case I cannot predict how many css links will be placed inside section because many pages will use th

Re: T5 optional css for component

2007-07-02 Thread Marcus
Hi Janko, You could try: @Inject @Path("context:assets/css/layout.css") private Asset _layoutCss; public Asset getLayoutCss() { if (yourCondition) return _layoutCss; else return ""; } Marcus

Re: T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi Erik, thank you for your answer, but it seems not to be so easy. all style links should be placed in the section and if i try to use following: <*link* rel="stylesheet" href="arkusz.*css* " type="text/*css*" /> css link will be printed out exactly in place where component is used on the p

Re: T5 optional css for component

2007-07-02 Thread Erik Vullings
Hi Janko, In your html template, you could use: Include css file do something else Cheers Erik On 7/2/07, Janko Muzykant <[EMAIL PROTECTED]> wrote: hi all, i would like to have an optional css for each of my components. optional, because depending on component's

T5 optional css for component

2007-07-02 Thread Janko Muzykant
hi all, i would like to have an optional css for each of my components. optional, because depending on component's parameter i would like/wouldn't like to include its css link. Lets imagine edit box with calendar for example - depending on parameter provided in template file, calendar's css file s