On Thu, 30 Oct 2014 15:07:03 -0200, George Christman <gchrist...@cardaddy.com> wrote:

Hi I'm trying to create a httpstatus page that does nothing more than
return a 200 response. Is there a way to do this without having to create a template?

Yep! Just have its onActivate() method return a StreamResponse (probably an empty TextStreamResponse, as it seems the only part here is to set a response header). You can also use MarkupWriter, as pages require some content to be generated, but a StreamResponse is more adequate in this case, IMHO.

For a non-page solution for doing the same, you can write a Dispatcher.

I know I can do things like this with MarkupWriter in a
component, I just don't know how to do it in a page.

MarkupWriter, afterRender(), etc work in exact the same way in pages and components.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to