xpoft / spring-vaadin

Spring and Vaadin integration
Other
55 stars 44 forks source link

Add-on http://vaadin.com/addon/springvaadinintegration

Documentation http://vaadin.xpoft.ru/

Vaadin 7.6.x

SpringVaadinIntegration 3.2.x

Vaadin 7.3.x

SpringVaadinIntegration 3.1.x

Vaadin 7.2.x

SpringVaadinIntegration 3.x

Vaadin 7.1.x

SpringVaadinIntegration 2.x

Vaadin 7.0.x

SpringVaadinIntegration 1.x

Serialization

You should use "transient" attribute for ApplicationContext and other's context's beans.

    @Autowired
    private transient ApplicationContext applicationContext;

Changelog

3.2

3.1

3.0

Vaadin 7.2.x -> SpringVaadinIntegration 3.x Vaadin 7.1.x -> SpringVaadinIntegration 2.x Vaadin 7.0.x -> SpringVaadinIntegration 1.x

2.0.2

2.0.1

2.0

Vaadin 7.1.x -> SpringVaadinIntegration 2.x Vaadin 7.0.x -> SpringVaadinIntegration 1.x

1.8

1.7.3

1.7.1

1.7

1.6.8

1.6.7

1.6.6

1.6.5

1.6.2

1.6

1.5.7

1.5.6

1.5

1.4.7

fix caching

1.4.6

1.4

1.3.5

1.3

1.2

1.1

1.0.4

1.0.2

1.0.1

Default. Add all view-beans from root package:

    DiscoveryNavigator navigator = new DiscoveryNavigator(applicationContext, UI.getCurrent().getPage().getCurrent(), display);
    navigator.navigateTo(UI.getCurrent().getPage().getFragment());

Disable add view-beans to Navigator. You can do it manual.

    DiscoveryNavigator navigator = new DiscoveryNavigator(applicationContext, UI.getCurrent().getPage().getCurrent(), display, false);
    navigator.addBeanView("view1", MyView.class);

    navigator.navigateTo(UI.getCurrent().getPage().getFragment());

or you can manual discover beans in a package

    navigator.discoveryViews("ru.xpoft.vaadin.test");

you can exclude some packages

    navigator.discoveryViews("ru.xpoft.vaadin.test", new String[] {"ru.xpoft.vaadin.test.one", "ru.xpoft.vaadin.test.two"})

1.0

githalytics.com alpha ["Yandex.Metrika counter"]