getRequestGlobals is injected into our BasePage as in the following... @InjectObject("service:tapestry.globals.RequestGlobals") public abstract RequestGlobals getRequestGlobals(); the getRequestGlobals() is just a convenience method for returning requestGlobals from the underlying page. And attached is the EmailResponseBuilder as an example of how to implement ResponseBuilder. I too tried extending the DefaultResponseBuilder but could not get that to work.
On 12/13/06, explido <[EMAIL PROTECTED]> wrote:
i'm concerned with the same problem and have tried to examine your solution without getting it to work. My first problem seems to imagine the EmailResponseBuilder class. I derived the EmailResponseBuilder from the DefaultResponseBuilder overriding "renderResponse", "render" and "getWriter" without success. Your constructor carries the cycle, how is this uses inside the EmailResponseBuilder? My second Problem is your getRequestGlobals(IRequestCycle cycle) method. Where do you get it from? I've tried with the following injection: @InjectObject("service:tapestry.globals.RequestGlobals") public abstract RequestGlobals getRequestGlobals(); ... but there is no way to store the ResponseBuilder like you do. where is the magic? can you give me a some advice? thx. Marco -- View this message in context: http://www.nabble.com/Html-Email-Messages-tf2776596.html#a7857759 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Dave Kallstrom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]