«Back
Scaladin 1.0 released

Scala is a programming language with functional and object-oriented aspects. It runs on JVM and interoperates with Java, which means that you can use Scala to create applications with Vaadin.

In addition to the necessary Java, Scala and Vaadin libraries, you don't need anything extra to develop Vaadin applications with Scala. However, with the release of Scaladin 1.0 (formerly known as scala-wrappers), using Vaadin with Scala is even easier. For example, Scaladin extends Vaadin components to provide constructors with named parameters to easily initialize a component with a single line. It also facilitates using Vaadin listeners with Scala. A full list of features in Scaladin 1.0 is available.

Here is a short example of what Vaadin UI code created with Scaladin can look like:

val layout = new VerticalLayout(width = 100 pct, height = 100 pct) {
  add(new Label(content = "Persons", style = Reindeer.LABEL_H1))
  add(new Table(width = 100 pct, height = 100 pct), ratio = 1)
  add(new HorizontalLayout(spacing = true) {
    add(new Button("Edit selected", _ => editClicked()))
    add(new Button("Add new", _ => addNewClicked()))
  })
}
getMainWindow.setContent(layout)

 

For more information about Scaladin, take a look at the project's GitHub page. The JAR file and a Maven dependency can be found from the Vaadin Directory. Example applications created with Scaladin include the Address Book and Document Manager. For information on setting up a project with Vaadin and Scala, check out the instructions in the Vaadin wiki.

Comments
Trackback URL:

Vaadin community is huge and growing. There is lots of stuff happening “behind the scenes” that don’t get enough attention among our average users. Thus we have decided to
Concurrency and distributed systems are probably among the hardest parts of software engineering. Basic Java EE apps usually don’t need to deal with these issues that much, but increasing
We're pleased to announce the public release of Tori – the modern and sleek discussion forum for Liferay portal . We've kept Tori under the blanket while developing it and
There is a point in every enterprise web application project when the scalability of the application under development is wanted to be measured. There are several reasons for why scalability tests
Vaadin TestBench is a browser automation tool, suited for creating UI level tests for Vaadin applications. It is based on Selenium 2, which means that all features of Selenium 2/WebDriver are also
Showing 1 - 5 of 100 results.
of 20

See all blog entries
Subscribe to this blog