@Inject @Path("context:css/mystyles.css") private Asset _stylesheet;
You can put a "context:" prefix on a path to say its relative to the context root. You still get the benefits of localization support (if you have localized variants of mystyles.css). On 5/16/07, Bill Holloway <[EMAIL PROTECTED]> wrote:
Thanks, Marcus, I'm using Maven and would like to keep the file under src/main/resources/com/.../components to simplify the injection. Bill On 5/16/07, Marcus <[EMAIL PROTECTED]> wrote: > Hi Bill, > > If this css file name never change, perhaps this help: > > in Layout.html: > <head> > <link href="assets/css/mystyles.css" rel="stylesheet" type="text/css"/> > </head> > > with mystyles.css under src/main/webapp/assets/css/ > > Marcus > -- "The future is here. It's just not evenly distributed yet." -- Traditional --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com