Tag: Java
New component features and development-time improvements in Vaadin 14
The latest feature update for Vaadin 14 includes much-requested component features and development-time improvements. Read on for more about the improved Dialog, pnpm build tool, DateTimePicker component and other new features. The features described in this post are available today in 14.2.0 and ...
Building a dashboard for a REST web service in Java
Vaadin is a great tool for building dashboards. Typically, a dashboard is a screen containing information, metrics, key indicators, and other data points related to business processes. Dashboards allow managers to track and monitor the health and performance of their organization. After seeing ...
An introduction to client-side TypeScript views in Vaadin 15
Vaadin is fast expanding its horizons. By the next LTS (estimated for 2021), the platform is looking to fully support two unique development models: Java-only server-side development (the current primary Vaadin model). TypeScript-based client-side UI development with seamless access to Java on the ...
Is your Grid too slow? You are probably using the wrong renderer
If you are building a business web application with Vaadin, chances are that you are using Vaadin Grid. There are multiple ways to create columns with Grid: some are more flexible than others. But what you might not know is how they differ in terms of performance on the client side. Why Client-Side ...
Java Bean Validation: A Comprehensive Introduction and Best Practices
Jakarta Bean Validation (previously known as Java Bean Validation) allows you to define data validations using annotations in your Java Beans. Its motto is "constrain once, validate everywhere". Available implementations Jakarta Bean Validation is an API defined by the JSR 380. Currently, there are ...
Uploads and downloads, inputs and outputs
Vaadin Upload asks the developer to provide an OutputStream where the framework can stream the file content. Vaadin StreamResource (~ download) asks the developer to provide an InputStream the framework can read and stream to a user. Intuitive? Not really, unless you have accustomed to this ...
Testing the UI without a browser
Martin Fowler has introduced a metaphor Test Pyramid, to suggest that you should only write a fraction of end-to-end tests compared to small unit tests. It is not because end-to-end tests, like the ones using Vaadin TestBench or Selenium, are worse. They are actually better as they test all parts ...
Developing without Server Restarts
Developing without Server Restarts Note: HotswapAgent+DCEVM is not supported for the latest Vaadin LTS (Vaadin 14). See the current Development Workflow documentation on the Vaadin Docs site for the recommended hot-deploy solution for your underlying framework (plain servlet, Spring or CDI). A ...
Microservices: Externalized Configuration
In the previous article of this series, we implemented a Discovery Server to allow microservices to consume other microservices without knowing their exact location. The code is available on GitHub, and you can find the instructions to run the demo application in the first article of this series. ...