Reputation: 1024
I have an issue with Tapestry 5.3.8.
Let's assume we hae 3 projects: Gui, Main and Work. Gui project contains custom tapestry componenets. Main and Work are independent projects, both used Gui. I would like to have common css files for Main and Work in Gui.
Gui components are working and they are using Gui css. But is there any way that e.g. Main be using Gui css as well? E.g. I have a page in Main, on which I would like to use css from Gui.
"Context:" unfortunatley is not working... (asset not found)
Any hints would be welcome :)
Upvotes: 1
Views: 267
Reputation: 371
If gui project is included as dependency for main and work you can use all resources (assets and modules) that has gui project. You can import it via @Import(stylesheet="path/to/asset.css") placed to component or page class. Path can be either relative or absolute.
For tapestry prior to 5.4 to assets can be kept in src/main/resources, for 5.4 and above they should be in META-INF/assets
Upvotes: 1