You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joost Schouten <jo...@jsportal.com> on 2007/10/23 06:30:35 UTC

[T5] howto decorate the ComponentClassResolver

Hi,

I made a filter to check the urls and see if the path starts with a locale
(eg. en_US/myPage) and if so, set it and redirect to the page without the
defined locale. Otherwise just let the request pass through.

I now would like to overwrite Tapestries ComponentClassResolver to generate
url's with the locale prefixed (as I assume tapestrie uses this internally
to generate its url's). It seems to me I should be able to decorate the
available ComponentClassResolver but am unsure as to how to define this in
my AppModule.

Cheers,
Joost



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


Antwort: [T5] howto decorate the ComponentClassResolver

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
overriding a service is done using the alias service.

please look at the tapestry-ioc documentation or 
earch the mailing list (nabble). there are several 
examples using the alias service. it think there's
also an example in the tapestry wiki :)

g,
kris



"Joost Schouten" <jo...@jsportal.com> 
23.10.2007 06:30
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
"'Tapestry users'" <us...@tapestry.apache.org>
Kopie

Thema
[T5] howto decorate the ComponentClassResolver






Hi,

I made a filter to check the urls and see if the path starts with a locale
(eg. en_US/myPage) and if so, set it and redirect to the page without the
defined locale. Otherwise just let the request pass through.

I now would like to overwrite Tapestries ComponentClassResolver to 
generate
url's with the locale prefixed (as I assume tapestrie uses this internally
to generate its url's). It seems to me I should be able to decorate the
available ComponentClassResolver but am unsure as to how to define this in
my AppModule.

Cheers,
Joost



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