Can't get it working with Dispatcher. Where should I plug new dispatcher and
what should a dispatcher do? Do you propose to replaces pages with
dispatchers? Or just make dispatcher which somehow says to Tapestry that
specified page doesn't contain any template file?

I tried to add new dispatcher to both "before:PageRender" and
"after:PageRender" but didn't have any success. The one in
"after:PageRender" never ever invoked. And handlign request in
"before:PageRender" prevents executing page's onActivate at all.

Am I doing something wrong?

On Tue, Mar 30, 2010 at 23:20, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 30 Mar 2010 15:42:39 -0300, Dmitry Gusev <dmitry.gu...@gmail.com>
> wrote:
>
>  My onActivate methods in such pages return nothing, they're void.
>>
>
> In this case, Tapestry expects your page to have a template so it has
> something to render.
>
>
>  Should I change return type to something else? I know I can use
>> StreamResponse and return something like new
>> TextStreamResponse("text/plain", "").
>>
>
> That's not beautiful but it's a solution.
>
>
>  Would it be preferred way?
>>
>
> I guess it would be to implement a Dispatcher.
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to