On Wed, 17 Feb 2010 13:10:57 -0200, raulmt <rau...@gmail.com> wrote:

Hello,

Hi!

Is there a way to distinguish action (or component events) requests from the page render requests?

Yes. A @SetupRender method is only invoked on render requests. Another way is using what Tapestry itself does: inject ComponentEventLinkEncoder and use its decodePageRenderRequest(Request request) method: if it returns null, it's not a page render request. If decodeComponentEventRequest(Request request) returns null, it's not a action request.

As request.isXHR(), is there something like xxxxxx.isActionRequest() or
xxxxxx.isPageRequest()?

No. You can file a JIRA for this so committers can implement it.

--
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

Reply via email to