My onActivate methods in such pages return nothing, they're void.

So far I'm having this exception:
30.03.2010 17:56:55
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler
handleRequestException
SEVERE: Processing of request failed with uncaught exception: Page
task/RunJob did not generate any markup when rendered. This could be because
its template file could not be located, or because a render phase method in
the page prevented rendering.
java.lang.RuntimeException: Page task/RunJob did not generate any markup
when rendered. This could be because its template file could not be located,
or because a render phase method in the page prevented rendering.
    at
org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:67)
    at
$PageMarkupRenderer_127b0360a18.renderPageMarkup($PageMarkupRenderer_127b0360a18.java)
    at
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:61)
...

Should I change return type to something else? I know I can use
StreamResponse and return something like new
TextStreamResponse("text/plain", ""). Would it be preferred way?


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

> On Tue, 30 Mar 2010 13:13:54 -0300, Dmitry Gusev <dmitry.gu...@gmail.com>
> wrote:
>
>  Hello,
>>
>
> Hi!
>
>
>  is it possible to have page class without (with empty) template?
>>
>
> It is. Pages do not need to have a template, as long as they aren't
> rendered (returning something other than null or this in onActivate()).
>
> --
> 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