UITask is a server-side add-on for Vaadin 7 that provides a simple framework for executing background tasks and updating the UI safely.

The add-on is primarily composed of a task that can be run on a background thread via an Executor and then complete the work safely in the UI thread/lock via a UIAccessor. Vaadin is not thread-safe, therefore all UI modifications must be done after obtaining the UI lock. This add-on attempts to simplify that process by providing an implementation of Future and exposing methods that are safely called in the UI thread.

The add-on was inspired by by Swing's SwingWorker and JavaFX's Task.

View the README for more details and examples.

Install

Link to this version
BetaReleased 11 July 2016Apache License 2.0
Framework Support
Vaadin 7.3+
Install with
Release notes - Version 1.1.0
  • Added test case for canceling before run.
  • Updated documentation.
  • Fixed a packaging bug where the parent POM was referenced from the module. This is not supported in the Vaadin Directory.