JSF Integration: JSF Integration is a Vaadin 7 add-on that allows you to render Vaadin UIs in JSF pages.
Usage
-
Implement a new Vaadin UI by extending
com.vaadin.ui.UI
. -
Configure a new
VaadinServlet
in yourweb.xml
or by using the@WebServlet
annotation. -
Make sure you can access the Vaadin UI when running your application. This includes ignoring the URL mapped to the
VaadinServlet
in other Servlets or Filters (see the appfuse-vaadin-example application which integrates Spring, Hibernate, JSF, and Vaadin). -
In your XHTML file, add the XML namespace and use the
ui
tag to point to the URL mapped to theVaadinServlet
:<html ... xmlns:vaadin="http://vaadin.com/jsf">
<vaadin:ui url="/myui"/>
-
Optionally specify a custom widgetset and a theme:
<vaadin:ui url="/myui"
widgetset="com.example.MyUiWidgetset"
theme="mytheme"/>