On Wed, 31 Mar 2010 05:30:49 -0300, Dmitry Gusev <dmitry.gu...@gmail.com>
wrote:
Can't get it working with Dispatcher.
Take a look at
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher.
Where should I plug new dispatcher
It must be contributed to the MasterDispatcher service.
and what should a dispatcher do?
A dispatcher is a class that handles requests and generates a response. In
Tapestry, it's the concept more similar to a servlet. In your case, as you
don't need to generate a response, it would be a better fit than a page.
Do you propose to replaces pages with
dispatchers?
No, just to handle URLs that don't generate a response.
Or just make dispatcher which somehow says to Tapestry that
specified page doesn't contain any template file?
No. A dispatcher is completely different from a page.
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.
In this case, the dispatcher would replace the page that handles the GAE
callback. Don't forget that the boolean dispatch(Request request, Response
response) throws IOException method must return false for requests not
really handled by the 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