On Thursday 25 Aug 2005 21:40, Alan Chandler wrote: ... > > I have done it 3 different ways now, trying various things out using TAP > 4.. My final way is still not working, but I think its finding the style > sheet, its just that other parts of my application is not working ... > 3) (NOTE NOT YET FULLY WORKING) I have put the stylesheet in the Root > Context of tomcat. In the server.xml file for tomcat (hosted via eclipse) > I have > > <!-- Tomcat Root Context --> > > <Context path="" docBase="/home/alan/dev/famtree/rootContext" > debug="0"/> > > <!-- Tomcat Examples Context --> > > > <Context docBase="/home/alan/dev/famtree/.deployables/famtree" > path="/famtree" reloadable="true" > source="com.ibm.wtp.web.server:famtree"/></Host> > > > The stylesheet and related images are all stored > in /home/alan/dev/famtree/rootContext/styles > > and my component Border.html now simply refers to it via > > <html jwcid="@Shell" stylesheet="asset:stylesheet" title="Family Tree > Application"> > > But because I have simplified my border and so longer have an associated > java class, I have add to add a component specification Border.jwc with > > <?xml version="1.0"?> > <!DOCTYPE component-specification PUBLIC > "-//Apache Software Foundation//Tapestry Specification 4.0//EN" > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> > <component-specification> > <asset name="stylesheet" path="/styles/chandler.css" /> > </component-specification> > > > in it.
Just to say, I got this running this morning and it DOES work. -- Alan Chandler http://www.chandlerfamily.org.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
