All -

I'm new to Tapestry, so please forgive my ignorance.

We're writing an application using Tapestry 5.3.6.  We would like to package
customized components such as buttons, date pickers, and tables in a
components jar.  This jar will contain the class files, and associated css,
js, and image files for components.  There will be no functionality in this
jar.  These components will then be used by another application that
provides application functionality.

The trouble we are having is getting the application to correctly find the
css, js, and image files in the component jar.  The classes and tml appear
to have been strait forward and worked from the beginning without tweaking.

To get the css to load from the jar file we had to put them in the same
source file as the tml (src/main/resources/ . . .) instead of the webapp
directory (src/main/webapp/ . . .).  Additionally, with this location of the
css we are getting the css loaded by putting something like this in the
component java files:  @Import(stylesheet = "./componentName.css")

We have not been successful in getting image files loaded from the component
jar, however.  We have tried referencing images through relative path from
both tml and css, both to no avail.

What is the generally accepted way to do this sort of packaging and
referencing?

Thanks,

Matt



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Referencing-files-from-a-jar-tp5718355.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to