Skip to content

matthewdfleming/spring-vaadin

 
 

Repository files navigation

Documentation

http://vaadin.xpoft.ru/

Serialization

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

    @Autowired
    private transient ApplicationContext applicationContext;

Changelog

1.7.3

  • Add custom UI providers support (servlet "UIProvider" property). Thx to mpilone.

1.7.1

  • Now you can use @Scope("session") for UI, instead of @PreserveOnRefresh. Bean with "prototype" scope it's the same as class without @PreserveOnRefresh (create new instance for each new page). Other types of scope will store UI in the session and it'll be reused.

1.7

  • VaadinMessageSource. Use VaadinSession instead of UI
  • ShiroSecurityNavigator. Add @RequiresAuthentication, @RequiresGuest, @RequiresUser support.

1.6.8

  • NPE fix in DiscoveryNavigator. Thx to mpilone.

1.6.7

  • Add portlet support (SpringVaadinPortlet). Thx to matthiasgasser.

1.6.6

  • Vaadin 7.0.0

1.6.5

  • Vaadin 7.0.0.beta10 Vaadin changes. Now UI.getContent() return instance of Component. Replace: DiscoveryNavigator navigator = new DiscoveryNavigator(this, getContent()); With: DiscoveryNavigator navigator = new DiscoveryNavigator(this, this);

1.6.2

  • Add @RequiresPermissions support

1.6

  • Add Apache Shiro support. Simple check for roles.

1.5.7

  • String VaadinView.scope renamed to boolean VaadinView.cached. Be careful.

1.5.6

  • Vaadin 7.0.0.beta6
  • replace AspectJ with static access to the application context. Now you can remove 'context:spring-configured/'
  • add view scopes: prototype (default) and ui

1.5

  • Vaadin 7.0.0.beta5
  • Java 6.0 support

1.4.7

fix caching

1.4.6

  • Simplify DiscoveryNavigator. It uses Spring Root Context to autowiring Vaadin Views, and AspectJ for non-managed classes.
  • You should add 'context:spring-configured/' to your spring config. See sample project.
  • Now serialization & deserialization work perfect.

1.4

  • Vaadin 7.0.0.beta4 support
  • Enhanced SystemMessages bean support. Now you can use localized messages! Simple & quick. See sample project.
  • Use can use VaadinMessageSource, it's more simple way to use Spring MessageSource

1.3.5

  • Add SystemMessages bean support. Now you can use Spring Beans as source for SystemMessages.

1.3

  • Vaadin 7.0.0.beta3

1.2

  • Improve DiscoveryNavigator (cache, performance). Now you should set "basePackage" in DiscoveryNavigator constuctor. Multi-jars, enhanced scanning already supported.

1.1

  • Fix serialization.

1.0.4

  • DiscoveryNavigator. Migrate from WebApplicationContext to ApplicationContext

1.0.2

  • Add Vaadin 7.0.0.beta2 support

1.0.1

  • Custom DescoveryNavigator

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

  • Autowiring UI
  • DiscoveryNavigator

githalytics.com alpha

About

Spring and Vaadin integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published