Docs

Documentation versions (currently viewingVaadin 24)

Query Parameters

Learn how to manage state with query parameters in a Vaadin application.

Query parameters are key-value pairs appended to the end of a URL after a ? character. Multiple parameters are separated by &.

For example, this URL: /orders?sort=date&filter=shipped

Contains the following query parameters:

  • sort"date"

  • filter"shipped"

Query parameters are commonly used to store view-related state, such as a grid’s sort order or a search field’s value. Since they are optional, always provide default values when a parameter is missing.

Tip
If you need required parameters, consider using route parameters instead.

Using Query Parameters in Your Application

You can use query parameters both in Flow and Hilla views. The following guides show you how to implement them: