Clojure with Vaadin - easy web widgets
Vaadin has been around for quite some time and is known to be an all coding-based UI framework for web applications. There are many frameworks out there for just doing web work of course, and even in this chapter we introduce some of the famous ones based on JavaScript libraries.
Vaadin proposes to have a consistent set of easy-to-use widgets, that usually would be Java written. With a bit of Clojure magic, but mostly some ways of bridging the gap between compiled code and scripting, you can now use your favorite language to script the UI using those widgets and see updates in real time. In this recipe, you will also be introduced again to some reactive programming concepts in the scope of Vaadin with Clojure. Enjoy!
Getting ready
To begin with programming in Clojure/Vaadin, you will start by setting up the project.clj
file with some easy but specific settings. Let's see what is inside.
Project settings
To use the Vaadin classes, we will import the necessary...