Hi guys, I am new to Tapestry. Over the past couple of weeks, I have migrated a simple Tapestry application we had to T 5.3 and really enjoyed the experience. Now I am evaluating Tapestry for some further development by writing a prototype application.
One of the things I want to be able to do is inject a domain object inside all pages that have a field of that type. The situation is this :- 1. One tapestry app will serve multiple sites 2. There is a domain object called Site which contains configuration for site, and there is a mechanism to identify the Site for current request based on information in the URL used (let us say a query parameter called site, but in reality this will be the domain name used to access the application). What I am trying to do is intercept the request, look up the Site and inject the Site object inside the target page which may look like this :- class MyPage { private Site site; } It appears that the first two steps can be accomplished either by using a Decorator or a HttpServletRequestFilter. After that how to I inject the Site object inside the target page? I have searched through the Nabble forum, Tapestry documentation, Tapestry quickstart etc. but I can't see a clear way of how to do this. If anyone can provide an answer, or point me to some demo code or another resource, that would help me greatly. Thanks! Cheers, Sonny Gill