You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Antonio Fernández <am...@gmail.com> on 2010/11/22 18:08:31 UTC

T5.1 +tapestry-googleanalytics - Get the current page classname from inside a MarkupRendererFilter.

Hi all, Greetings from Málaga :) !!!

- Congratulations for the new Layout of the Web Site.

- Thanks for this really active/useful mailing list, I founded a lot of 
solutions
and interesting news about 3rd Libraries, upgradings and books ( here we 
continue
waiting the english translation of the Igor´s Book :-* ... )

- We are using the 'tapestry-googleanalytics' Library to obtain the 
statistics of our
website. It works great, but now we need an specific customization to 
discard
the work done by the GAnalyticsScriptsInjector class in some specific 
Pages. This
class is an implementation of the _MarkupRendererFilter _interface, so 
here is the key. How
could we know the classname  of the page that is being rendered inside a 
MarkupRendererFilter ? Is it possible ?

We tried by inyecting the ComponentResources service inside ( inspired 
in the typical Layout component,
that uses this service to determine the current page ) , but don´t 
works, T5 says that this service is not available.

Thanks in advance & Have a nive day,
Antonio

P.D.: If you want to see another little example of
what you can do EASILY with Tapestry 5, please
take a look of our website ;-)

-- 
Antonio Miguel Fernández Rodríguez
Jaraxa Software, SL
Administrator, Software analyst
www.jaraxa.com




Re: T5.1 +tapestry-googleanalytics - Get the current page classname from inside a MarkupRendererFilter.

Posted by Antonio Fernández <am...@gmail.com>.
El 22/11/2010 20:11, Igor Drobiazko escribió:
> In 5.2 there is a new method in RequestGlobals named getActivePageName().
>
> See here:
>
> http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/services/RequestGlobals.html#getActivePageName%28%29
>
It works !!  I upgraded from 5.1.0.5 to 5.2.4-beta with no problems.
Thanks Igor,

Best RE
Antonio


> 2010/11/22 Antonio Fernández<am...@gmail.com>
>
>> Hi all, Greetings from Málaga :) !!!
>>
>> - Congratulations for the new Layout of the Web Site.
>>
>> - Thanks for this really active/useful mailing list, I founded a lot of
>> solutions
>> and interesting news about 3rd Libraries, upgradings and books ( here we
>> continue
>> waiting the english translation of the Igor´s Book :-* ... )
>>
>> - We are using the 'tapestry-googleanalytics' Library to obtain the
>> statistics of our
>> website. It works great, but now we need an specific customization to
>> discard
>> the work done by the GAnalyticsScriptsInjector class in some specific
>> Pages. This
>> class is an implementation of the _MarkupRendererFilter _interface, so here
>> is the key. How
>> could we know the classname  of the page that is being rendered inside a
>> MarkupRendererFilter ? Is it possible ?
>>
>> We tried by inyecting the ComponentResources service inside ( inspired in
>> the typical Layout component,
>> that uses this service to determine the current page ) , but don´t works,
>> T5 says that this service is not available.
>>
>> Thanks in advance&  Have a nive day,
>> Antonio
>>
>> P.D.: If you want to see another little example of
>> what you can do EASILY with Tapestry 5, please
>> take a look of our website ;-)
>>
>> --
>> Antonio Miguel Fernández Rodríguez
>> Jaraxa Software, SL
>> Administrator, Software analyst
>> www.jaraxa.com
>>
>>
>>
>>
>
-- 

Antonio Miguel Fernández Rodríguez
Jaraxa Software, SL
Administrator, Software analyst
www.jaraxa.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.1 +tapestry-googleanalytics - Get the current page classname from inside a MarkupRendererFilter.

Posted by Igor Drobiazko <ig...@gmail.com>.
In 5.2 there is a new method in RequestGlobals named getActivePageName().

See here:

http://tapestry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/services/RequestGlobals.html#getActivePageName%28%29

2010/11/22 Antonio Fernández <am...@gmail.com>

>
> Hi all, Greetings from Málaga :) !!!
>
> - Congratulations for the new Layout of the Web Site.
>
> - Thanks for this really active/useful mailing list, I founded a lot of
> solutions
> and interesting news about 3rd Libraries, upgradings and books ( here we
> continue
> waiting the english translation of the Igor´s Book :-* ... )
>
> - We are using the 'tapestry-googleanalytics' Library to obtain the
> statistics of our
> website. It works great, but now we need an specific customization to
> discard
> the work done by the GAnalyticsScriptsInjector class in some specific
> Pages. This
> class is an implementation of the _MarkupRendererFilter _interface, so here
> is the key. How
> could we know the classname  of the page that is being rendered inside a
> MarkupRendererFilter ? Is it possible ?
>
> We tried by inyecting the ComponentResources service inside ( inspired in
> the typical Layout component,
> that uses this service to determine the current page ) , but don´t works,
> T5 says that this service is not available.
>
> Thanks in advance & Have a nive day,
> Antonio
>
> P.D.: If you want to see another little example of
> what you can do EASILY with Tapestry 5, please
> take a look of our website ;-)
>
> --
> Antonio Miguel Fernández Rodríguez
> Jaraxa Software, SL
> Administrator, Software analyst
> www.jaraxa.com
>
>
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de