Re: Example of how to render Tapestry5 block from Service

2013-04-07 Thread Dmitry Gusev
Hi, I agree this looks like a hack, but in order to render a page/block you should provide a "context" for it to be rendered. So you can't just call RenderCommand.render() because it says nothing about the context. In tapestry5 you provide such context for pages/components in event context via e

Re: Example of how to render Tapestry5 block from Service

2013-04-07 Thread Dragan Sahpaski
Commenting doesn't seem to work. I've done it exactly like that at times but it still seems like hacking the ComponentEventRequestHandler which is for handling component events. Since BlockImpl is a RenderCommand can something similar and cleaner be accomplished by using a custom MarkupWriter and a

Example of how to render Tapestry5 block from Service

2013-04-07 Thread Dmitry Gusev
FYI: http://dmitrygusev.blogspot.ru/2013/04/render-tapestry5-block-to-string-from.html -- Dmitry Gusev AnjLab Team http://anjlab.com