Henri Dupre <henri.dupre <at> gmail.com> writes:

> 
> 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?

I'd suggest injecting it into your page:

class MyPage ... {
  @InjectMeta("foo.debug")
  public abstract boolean getDebug();
}

It can remain as a param in the servlet context.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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

Reply via email to