Skip to content

Latest commit

 

History

History

simple-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Holon platform examples: Vaadin UI

This is one of the Holon Platform example projects.

This example shows how to setup a simple web application using Vaadin 8 as UI engine and the Holon Platform Vaadin module, wich provides Vaadin UI builders and integration with the Holon Platform foundation architecture, such as the Property model and the Datastore API.

The Holon Platform ViewNavigator will be used to configure and manage the application's views.

Topics

This example addresses the following topics:

  • Setup a web application using the Holon Platform Vaadin integration and Spring Boot auto-configuration support
  • Use the ViewNavigator to configure the application views and hanlde navigation operations
  • Use the Holon Platform Property model and Datastore API with the platform Vaadin integration components to display and manage a data entity.

Example structure

The Product class represents the property model for a simple product data entity.

A JDBC Datastore backed by a H2 database is used for product data persistence, using a table named products created using the schema.sql file and populated using the data.sql file.

This application is composed by three views:

  • Home: the home view, listing all the available products and allowing to display the product data by clicking on a row
  • View: displays a product in an application window, providing the "Edit" and "Delete" operations
  • Manage: manages the product data, providing an input form to create or update a product

Run this example

This example is configured using Spring Boot, so you just have to run the Application class, open a web browser and navigate to:

http://localhost:8080

Documentation

The complete Holon Platform reference guide is available here.

For the specific documentation about the modules and the components used in this example see:

System requirements

The Holon Platform is built using Java 8, so you need a JRE/JDK version 8 or above to build and run this example projects.

License

All the Holon Platform modules and examples are Open Source software released under the Apache 2.0 license.

Holon Platform Examples

See Holon Platform Examples for the examples directory.