Hello,
in the documentation[0] is is stated that Tapestry supports injection
for five types of resources: String, Locale, Logger, ComponentResources,
and Messages.
I am wondering if it possible to extend the list with my own resource.
What I have in mind is a custom messages resource which is aware of the
current component/page and also has access to the current locale as well
as another injected service. I want to use it to extend the solution
mentioned in my earlier thread "Product-line specific component messages".
Replacing MessagesImpl directly does not seem the way to go, since this
resource looks very hard-coded.
Regards
Stephan
[0] http://tapestry.apache.org/injection.html
in the documentation[0] is is stated that Tapestry supports injection
for five types of resources: String, Locale, Logger, ComponentResources,
and Messages.
I am wondering if it possible to extend the list with my own resource.
What I have in mind is a custom messages resource which is aware of the
current component/page and also has access to the current locale as well
as another injected service. I want to use it to extend the solution
mentioned in my earlier thread "Product-line specific component messages".
Replacing MessagesImpl directly does not seem the way to go, since this
resource looks very hard-coded.
Regards
Stephan
[0] http://tapestry.apache.org/injection.html