On Wed, 30 Jul 2014 10:02:55 -0300, Stephan Windmüller
<stephan.windmuel...@tu-dortmund.de> wrote:
And here is my problem: The current product is selected based on the
activation context. How can I modify the service based on the values of
the context?
@Inject
private ProductService productService;
void onActivate(...) {
productService.setCurrentProduct(...);
}
Don't forget productService must be a perthread service. Otherwise, any
request for the current product will set it for all others and a mess will
arise.
Injecting the service in onActivate and setting the value does not work.
Define "does not work". Did you debug your binding factory?
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org