click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Schellink <sab...@gmail.com>
Subject Re: svn commit: r782672 - in /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table: SearchTablePage.java TableStyles.java
Date Wed, 10 Jun 2009 05:40:23 GMT
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



Mime
View raw message