Malcolm Edgar wrote:
Another option might be to change the way "injected Spring beans" work
(option 3 from the javadoc). Currently the beans are injected when a new
instance of Page is created. However we could change this so that injections
occurs in the "activatePageInstance" method, much like ApplicationContext is
re-injected.
I did this pattern in an earlier revision of the SpringClickServlet,
maybe work putting this in.
Just to clarify, I suggest the "injected Spring beans" approach only
for the stateful Page examples: table/TableStyles.java and
table/SearchTablePage. For stateless Pages the annotation based
approach works great.
bob