Important Notice - Forums is archived
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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin and Guice
Hi,
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?
Thanks,
Jan
Never mind.
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.
Jan