An approach to develop UIs using the Model-View-Presenter Pattern more comfortable under Vaadin 14. Whilst programming MVP under Vaadin was already possible before, this addons provides a predefined class Presenter to give the user a more strict strucure to rely on.
Note:
Using this addon will not make your code per se better, things can still be done the wrong way.
If you're new to the MVP pattern please make sure to give it a good read.
This could also be used to programm MVVM dependending how you bind the data to the model.
Starting the test/demo server:
- Run
mvn jetty:run
. - Open http://localhost:8080 in the browser.
You can create the zip package needed for Vaadin Directory using
mvn versions:set -DnewVersion=1.0.0 # You cannot publish snapshot versions
mvn install -Pdirectory
The package is created as target/mvp-flow-1.0.0.zip
For more information or to upload the package, visit https://vaadin.com/directory/my-components?uploadNewComponent