Directory

← Back

spring-mvp - Addon

Framework to build event driven applications with Vaadin and Spring

Author

Rating

Popularity

<100

springMvp provides solutions for two general ideas:

  1. an advanced event dispatching mechanism which allows to dispatch events easily event between multiple Vaadin application instances

  2. the separation of code in Model View and Presenter (MVP)

The documentation has detailed explanation how springMvp needs be configured and used.

The demo application shows how the User experience is when it is possible to send notifications between several Vaadin application instances (Browsers) and how comfortable it is for the user to get immediately informed when a model changes.

Please have a look at the demo application and the detailed documentation.

It is highly recommended to use this addon using with Maven.

Sample code

public class ShowArticlesViewEvent extends SpringMvpEvent {

	private static final long serialVersionUID = -7682300622168995827L;

	public ShowArticlesViewEvent(Object eventSource) {
		super(eventSource, null);
	}

}
public class AddonDemoApplicationPresenter extends
		AbstractPresenter<AddonDemoApplication> {

	@HandleSpringMvpEvent
	public void handleShowArticlesView(ShowArticlesViewEvent event) {
		getView().setView(springContext.getBean(ArticlesManagement.class));
	}
}
public class AddonDemoApplication extends SpringMvpVaadinApplication implements
		View<AddonDemoApplicationPresenter> {

	@Override
	protected void initSpringApplication(ConfigurableWebApplicationContext arg0) {

	    ...
		presenter.dispatchEvent(new ShowShoppingCartViewEvent(this));

	}
	...
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Initial release

Released
2013-02-16
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.0+
Browser
Browser Independent

spring-mvp - Addon - Vaadin Add-on Directory

Framework to build event driven applications with Vaadin and Spring spring-mvp - Addon - Vaadin Add-on Directory
springMvp provides solutions for two general ideas: 1. an advanced event dispatching mechanism which allows to dispatch events easily event between multiple Vaadin application instances 2. the separation of code in Model View and Presenter (MVP) The documentation has detailed explanation how springMvp needs be configured and used. The demo application shows how the User experience is when it is possible to send notifications between several Vaadin application instances (Browsers) and how comfortable it is for the user to get immediately informed when a model changes. Please have a look at the demo application and the detailed documentation. It is highly recommended to use this addon using with Maven.
Online