guiceclick-framework

Apache Click Guice integration


Is there a way of integrating apache click web framework with Google Guice such that I can use @Inject to inject Guice services into page/panel classes ?


Solution

  • I used the guice filter on web.xml and added the ClickServlet in guice servlet module. I then did an override on the newPageInstance() method on click servlet and called injector.injectMembers(page) to inject all the dependencies on the newly created page.