T5 hast its own IoC container incorporated for which you could write a
new service and have it injected into your page classes using the
@Inject annotation. For more information consult the Tapestry IoC
documentation at http://tapestry.apache.org/tapestry5/tapestry-ioc/.
Uli
llonely schrieb:
Hi all,
I am new on Tapestry and try to become familiar with it, mostly through this
forum and the official site. I am trying to migrate a simple servlet into
tapestry.
I find myself search for days for tasks that seem simple. Currently I am
trying to achieve the following:
a) Load some init parameters, located in web.xml. I want to (pre)initialize
them once and have access to them from all pages. In a simple servlet i load
them inside servlet's init() method using ServletConfig. How can I do in on
Tapestry?
b) Similarly with above, I want to load a datasource (configured on tomcat),
only once and use it on all my pages. In a simple servlet I do a Context
lookup in init() method and have the datasource object available.
So to sum up the question is: how do I preload an object once, and have it
available
for all pages (not inside a session)?
I am using version 5.0.6
Thanks in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]