Utilities for CDI/Vaadin applications
PROJECT DISCONTINUED! Replaced by the official Vaadin CDI plugin and CDI Properties & CDI MVP add-ons
CDI is a JavaEE standard that consists of two fundamental parts: It allows you to bind bean instances to contexts with well-defined life-cycles and inject instances to beans in a type-safe way.
CDI Utils add-on provides some utilities for CDI/Vaadin applications: -Custom CDI Context for Vaadin -Lightweight MVP framework -Producers for declaratively defined Vaadin components (@Preconfigured -annotation) -Built in i18n of @Preconfigured components
Quick start (CDI Utils 2):
- Add empty beans.xml -file (CDI marker file) to your project under WEB-INF dir
- Add cdi-utils*.jar to your project
- Annotate your UI with @UIScoped
- Give the Vaadin servlet an init parameter "UIProvider" with the value "org.vaadin.virkki.cdiutils.application.CdiUIProvider"
- Deploy to JavaEE/Web profile -compatible container
Quick start (CDI Utils 1):
- Add empty beans.xml -file (CDI marker file) to your project under WEB-INF dir
- Add cdiutils*.jar to your project
- Create your Application class by extending AbstractCdiApplication
- Use CdiApplicationServlet instead of the normal ApplicationServlet
- Deploy to JavaEE/Web profile -compatible container (CDI apps can also be run on servlet containers etc. but some further configuration is required)
See the example projects at: CDI Utils 2: https://github.com/tomivirkki/cdiutils-addressbook/tree/vaadin7 CDI Utils 1: https://github.com/tomivirkki/cdiutils-addressbook
Install
Framework Support
Browser Independent
Install with
Release notes - Version 2.1.1