SpringVaadinIntegration

Spring and Vaadin integration, forked from xpoft/spring-vaadin

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

cz.req.vax
ArtifactId

ArtifactId

spring-vaadin-integration
Last Version

Last Version

3.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

SpringVaadinIntegration
Spring and Vaadin integration, forked from xpoft/spring-vaadin
Project URL

Project URL

https://github.com/ohmdrj/spring-vaadin

Download spring-vaadin-integration

How to add to project

<!-- https://jarcasting.com/artifacts/cz.req.vax/spring-vaadin-integration/ -->
<dependency>
    <groupId>cz.req.vax</groupId>
    <artifactId>spring-vaadin-integration</artifactId>
    <version>3.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/cz.req.vax/spring-vaadin-integration/
implementation 'cz.req.vax:spring-vaadin-integration:3.1.1'
// https://jarcasting.com/artifacts/cz.req.vax/spring-vaadin-integration/
implementation ("cz.req.vax:spring-vaadin-integration:3.1.1")
'cz.req.vax:spring-vaadin-integration:jar:3.1.1'
<dependency org="cz.req.vax" name="spring-vaadin-integration" rev="3.1.1">
  <artifact name="spring-vaadin-integration" type="jar" />
</dependency>
@Grapes(
@Grab(group='cz.req.vax', module='spring-vaadin-integration', version='3.1.1')
)
libraryDependencies += "cz.req.vax" % "spring-vaadin-integration" % "3.1.1"
[cz.req.vax/spring-vaadin-integration "3.1.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.7
javax.portlet : portlet-api Optional jar 2.0
org.springframework : spring-webmvc-portlet Optional jar 4.1.0.RELEASE
org.apache.shiro : shiro-core Optional jar 1.2.3

provided (3)

Group / Artifact Type Version
javax.servlet : servlet-api jar 2.5
org.springframework : spring-web jar 4.1.0.RELEASE
com.vaadin : vaadin-server jar 7.3.0

Project Modules

There are no modules declared in this project.

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

Documentation http://vaadin.xpoft.ru/

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.1

  • Vaadin 7.3 support
  • Spring Framework 4.1

3.0

  • Vaadin 7.2 support
  • Update libraries versions: Spring Framework, slf4j, apache shiro, maven
  • Session scoped UI hasn't supported anymore :-(

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

2.0.2

  • Add initial OSGI support. Thx to vladimirfx.

2.0.1

  • Add ability to initialize the plugin in a separate method. Thx to cmjartan.

2.0

  • Vaadin 7.1 support

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

1.8

  • Add servlet config parameter "contextConfigLocation". Path to Spring configuration.
  • Session scoped UI improvements.

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

Versions

Version
3.1.1