On Mon, 20 Jun 2011 13:54:29 -0300, aniro <a.nir...@sailingweb.it> wrote:
Hi everyone,
Hi!
I'm working on some small application, and I need to register every
user action into a proprietary module. I need to record the total time
consumed by a request, the action that triggered the event and some http
parameters. The Tapestry version is 5.0.18, under Jboss 4.0.5.
The TimingFilter generated by the Tapestry archetype could be adapted for
you for that. Just check if there's an HTTP header X-Requested-With with
value XMLHttpRequest.
To avoid code duplication I thought to use some kind of request filter,
for page rendering and ajax requests both... I read the APIs and found
ComponentEventRequestFilter, which works fine when the URL change. But I
can't find a similar class for the Ajax events! I found AjaxFilter /
AjaxComponentEventRequestHandler .. but they are under the
org.apache.tapestry5.internal.services package, which is bad to use - and
they don't work.
They work. Your contribution added another implementation of a service,
and this is an error. Instead, you should override it or, better yet,
decoreate it using Tapestry-IoC.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, 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