joshua
joshua

Reputation: 4198

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 ?

Upvotes: 2

Views: 255

Answers (1)

joshua
joshua

Reputation: 4198

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.

Upvotes: 2

Related Questions