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