On Fri, 16 May 2014 15:01:13 -0300, Robert Hailey <rhai...@allogy.com>
wrote:
Greetings,
Hi!
I've run into a case where I must be able to tell if the current request
is a page-render request, or component-event request from within an
onActivate() function.
Is there a common/easy/concise way to do this?
Yep! Use the exact same service and method Tapestry itself uses for this:
@Inject
private Request request;
@Inject
private ComponentEventLinkEncoder componentEventLinkEncoder;
...
boolean pageRenderRequest =
componentEventLinkEncode.decodePageRenderRequest(request) != null;
boolean componentRequest = !pageRenderRequest
--
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