Take a look at the Global class in the Vlib sample.  It sets a debug flag
from a system property.
Might be what you're looking for.

If not, I've got code for an application state object factory with request
scoping.  Injecting a request scoped object then becomes as easy as using
the @InjectState annotation (or its spec equivalent).

-----Original Message-----
From: Henri Dupre [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 21, 2005 7:08 PM
To: Tapestry users
Subject: where to put a debug flag in tp4?


In tapestry 3, I had a debug flag as a static property of my engine
and I configured it in setupForRequest (by loading a property from the
servlet context). But in TP4, I'm not sure what is the best way to do
that. One idea I have is to refine an application object and a
factory, but then I don't know how to access the servlet properties
there. Any suggestion?

Thanks,

Henri.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to