Return-Path: Delivered-To: apmail-jakarta-tapestry-user-archive@www.apache.org Received: (qmail 49565 invoked from network); 2 Mar 2005 13:50:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 13:50:55 -0000 Received: (qmail 4039 invoked by uid 500); 2 Mar 2005 13:50:50 -0000 Delivered-To: apmail-jakarta-tapestry-user-archive@jakarta.apache.org Received: (qmail 4019 invoked by uid 500); 2 Mar 2005 13:50:49 -0000 Mailing-List: contact tapestry-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tapestry users" Reply-To: "Tapestry users" Delivered-To: mailing list tapestry-user@jakarta.apache.org Received: (qmail 4004 invoked by uid 99); 2 Mar 2005 13:50:49 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ron.piterman@gmx.net designates 213.165.64.20 as permitted sender) Received: from imap.gmx.net (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 02 Mar 2005 05:50:48 -0800 Received: (qmail invoked by alias); 02 Mar 2005 13:50:45 -0000 Received: from c161055.adsl.hansenet.de (EHLO [192.168.1.3]) (213.39.161.55) by mail.gmx.net (mp005) with SMTP; 02 Mar 2005 14:50:45 +0100 X-Authenticated: #1590520 Message-ID: <4225C4B0.9000604@gmx.net> Date: Wed, 02 Mar 2005 14:50:40 +0100 From: ron User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: he-il, he MIME-Version: 1.0 To: Tapestry users Subject: Re: adding css references References: <4225B6A0.1090803@gmx.net> <4225BBAC.3050204@gmx.net> <4225C177.4090207@gmx.net> <6f756325050302054520741221@mail.gmail.com> In-Reply-To: <6f756325050302054520741221@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ציטוט Ramin: Thanx, this would have been great, only my thinking at the time is towards a reusable component and not a working solution. Something like the body.addScript(...), which can add a css reference from each component withit the body. >I'm a Tapestry newbie, so I don't know much about it ... but I've done >what you are trying to do using SiteMesh. It allows you to define your >, <head>, <meta>'s, etc in any file and then "mesh" it together >with your decorator template (which is the equivalent of the Border in >tapestry I believe) You can use SiteMesh on any page that uses a >servlet engine (tomcat, jboss, etc.). Its a filter.. > >google SiteMesh to learn more... > >On Wed, 02 Mar 2005 14:36:55 +0100, ron <ron.piterman@gmx.net> wrote: > > >>I don't really check that: >> >>I can add the css to my Shell manually from my Border component, >>but the css is a part of the component, and I would like the component >>to add it to the <head>. >>The component is not part of the Head, and apears somewhere inside the Body. >> >>ציטוט Kevin Menard: >> >> >> >>>Hi Ron, >>> >>>On Mar 2, 2005, at 8:12 AM, ron wrote: >>> >>> >>> >>>>The question is again, where, or how, in the component lifecycle I >>>>can add to the pages "stylesheets" property my Asset ? >>>>can I do it from the jwc? (best !) >>>>or from the component's Java Class ? >>>> >>>> >>>I'm confused, why do you need to access the stylesheet? The browser >>>will render your component in the page with the stylesheet reference. >>>So, just use your class/id/whatever css constructs you're going to use >>>in the component. At render time, everything gets glued together >>>appropriately. >>> >>> >>> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org >> >> >> >> > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tapestry-user-help@jakarta.apache.org