Re: Html Email Messages

2006-12-14 Thread Jesse Kuhnert
It works that way on purpose. You aren't supposed to be storing it or thinking about how to store it. If you follow the advice I gave earlier in this thread on the approach involving hivemind you'll probably have better luck. On 12/14/06, explido <[EMAIL PROTECTED]> wrote: thanks dave, the dif

Re: Html Email Messages

2006-12-14 Thread explido
thanks dave, the difference seems to be that i'm using Tap 4.1.1 S and there is no way to store a ResponseBuilder via RequestGlobals http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/services/RequestGlobals.html 4.1.1 API Doc ... still struggling marco -

Re: Html Email Messages

2006-12-13 Thread Dave Kallstrom
getRequestGlobals(IRequestCycle cycle) simply calls cycle.getPage() to return the our base paqe which has RequestGlobals injected into it. And if you look at RequestGlobals you'll see the method void store(ResponseBuilder builder) and like I mentioned earlier extending DefaultResponseBuilder did n

Re: Html Email Messages

2006-12-13 Thread explido
my intention was simply to implement a listener on a page in order to send an email. the body of this email in turn should be generated out of another tapestry page. so the main problem is to "simply" return a rendered page as a string or similar, instead of writing it to a response. is there no

Re: Html Email Messages

2006-12-13 Thread explido
hi Dave, that's just the same injection i've done, but i can't do calls like getRequestGlobals(cycle).store(builder); i can not pass a "cycle" and can not store a ResponseBuilder since getRequestGlobals().store() does only accept an IRequestCycle Instead i've tried: innerCycle.setResp

Re: Html Email Messages

2006-12-13 Thread Dave Kallstrom
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 att

Re: Html Email Messages

2006-12-13 Thread Jesse Kuhnert
This could be made more transparent by using the ResponseDelegateFactory services to configure your specific type of builder within tapestry "proper". http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/service/tapestry.services.ResponseDelegateFactory.html All you would need to do

Re: Html Email Messages

2006-12-13 Thread explido
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" withou

Re: Re: Html Email Messages

2006-12-11 Thread Sam Gendler
I just stuck a page referencing the methods in your emails and others on the wiki here: http://wiki.apache.org/tapestry/SendingHtmlEmailWithTap Thanks. --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Html Email Messages

2006-12-11 Thread Dave Kallstrom
So I'll answer my own question in case anyone else is trying to render html emal with Tap 4.1 The underlying problem was not swapping out the DefaultResponseBuilder from RequestGlobals and also having to implement ResponseBuilder. Here is a snippet of code. ResponseBuilder defaultBuilder = getR

Re: Html Email Messages

2006-12-07 Thread Sam Gendler
I don't know 4.1, but if you provide a Response and replace the outputstream, you'll likely get what you want. You'll just have to ensure the headers don't get sent, but I believe that is a method you can overload in the Response. --sam On 12/7/06, Dave Kallstrom <[EMAIL PROTECTED]> wrote: In