We have put all lookup in the wicket application class. Thus all pages
do: getApplication().getWhatEverService().

I belive this make unit testing a bit easier since you mock the
application the same way every time.

/Per

On Tue, Mar 23, 2010 at 6:05 PM, smallufo <small...@gmail.com> wrote:
> 2010/3/24 smallufo <small...@gmail.com>
>
>> Thank you , I tried it , and it can successfully
>> inject EntityManagerFactory into a WebPage ,
>> But it seems unable to inject EntityManager , is it because of some
>> thread-safe limitation here ?
>>
>>
> Sorry , I meant wicket-contrib-javaee here.
>
>
>
>>  2010/3/23 Major Péter <majorpe...@sch.bme.hu>
>>
>>> I think yes, Wicket is already depending on cglib, so you could create
>>>
>>> something like this:
>>>
>>> http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.4.x/wicket-spring/src/main/java/org/apache/wicket/spring/SpringBeanLocator.java?r=HEAD
>>> or for non-spring code check out the wicketstuff javaee-inject project.
>>>
>>> Best Regards,
>>> Peter
>>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to