Vaadin: a suitable design template

I'm going to start developing a Vaadin web application, I also plan to use the Spring IOC container.

As far as I know, this looks like a Swing application, and I can see that people are using Presentation Models or MVC β€œlike” models.

If you have experience with Vaadin, can you offer me a design template that governs the structure of Vaadin? maybe a slightly modified version of Presentation Model or MVP or MVC? I also read that there are some patterns in Vaadin, what are they?

thanks

+4
source share
3 answers

Personally, I prefer to use the MVP template, it keeps the code nice and clean, and it works well for Vaadin applications. There are even a few MVP add-ons you could try.

+3
source

Perhaps you could try Vaadin with Grail. Grails gives you a clear separation between the database, services, and viewing level (+ you will get Spring IoC for free). If you want to try, do this one .

If not, you can

  • as a presentation, creating a user interface with components from Vaadin
  • You can also use the state template to implement the various states of the user interface screens.
  • create your implementation of the DAO template (and put your domain classes there too).
  • and use a listener template for action

The second option without Grails is pure Java, but it is also more painful.

+2
source

If you use Spring and Vaadin together, consider using the Spring Vaadin add-on to autostart applications, etc.

Disclaimer: I am the author

0
source

Source: https://habr.com/ru/post/1401556/


All Articles