Am 30.07.2014 um 15:18 schrieb Thiago H de Paula Figueiredo:
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.
I can imagine that. ;)
To prevent this, I added "@Scope(ScopeConstants.PERTHREAD)" to the
ProductServiceImpl class.
Injecting the service in onActivate and setting the value does not work.
Define "does not work". Did you debug your binding factory?
Yes, and it seems that "newBinding" is only called once for each
location and the value is cached. But more importantly, newBinding is
called _before_ the onActivate method is evaluated.
In other words: It seems that it is not possible to change evaluated
value from onActivate.
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org