To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I successfully got Vaadin working with Guice thanks to the great Wiki article (http://vaadin.com/wiki/-/wiki/Main/Integrating%20Vaadin%20with%20Guice%202.0)
But I can't find a way to use my WidgetSet.
In my original web.xml I had the following:
<servlet> ... <init-param> <description>Application widgetset</description> <param-name>widgetset</param-name> <param-value>com.ravn.manage.widgetset.ManageWidgetset</param-value> </init-param> </servlet>
How could I elegantly move this to the Guice configuration?
I found the solution here on the Guice-Servlet website. http://code.google.com/p/google-guice/wiki/ServletRegexKeyMapping
Map<String, String> params = new HashMap<String, String>(); params.put("widgetset", "com.ravn.manage.widgetset.ManageWidgetset");
... serve("/*").with(MyServlet.class, params)
Thanks for the great product.