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
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
-
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
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
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
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
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
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
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,
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
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
11 matches
Mail list logo