T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Robert Hailey
Greetings, 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? Something like: public class MyPage { @Inject private

Re: T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Thiago H de Paula Figueiredo
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

Re: T5.3 - What's the easiest way to detect the current request type?

2014-05-16 Thread Dmitry Gusev
Maybe try this? http://tapestry.apache.org/5.3.7/apidocs/org/apache/tapestry5/services/ComponentEventLinkEncoder.html#decodeComponentEventRequest(org.apache.tapestry5.services.Request) On Fri, May 16, 2014 at 10:01 PM, Robert Hailey rhai...@allogy.com wrote: Greetings, I've run into a case