Re: Adding Wicket to an existing project with Guice

2013-10-10 Thread Martin Dietze
On Thu, October 10, 2013, Martin Grigorov wrote: > You can > use > org.apache.wicket.guice.GuiceComponentInjector#GuiceComponentInjector(Application > app, Injector injector) constructor. > I.e. in MyApp#init() do: > > getComponentInstantiationListeners().add(new GuiceComponentInjector(this, > i

Re: Adding Wicket to an existing project with Guice

2013-10-10 Thread Martin Grigorov
Hi, You can use org.apache.wicket.guice.GuiceComponentInjector#GuiceComponentInjector(Application app, Injector injector) constructor. I.e. in MyApp#init() do: getComponentInstantiationListeners().add(new GuiceComponentInjector(this, injectorReadFromServletContext)) On Thu, Oct 10, 2013 at 10:

Adding Wicket to an existing project with Guice

2013-10-10 Thread Martin Dietze
On a legacy project, there are two web frameworks in use, one for the frontend, one for the backoffice application. This project already uses Guice which is instanciated by a ContextListener which also does some initialisation code, like pulling up some particular Guice beans. Now in this project