Feedback - Vaadin Add-on Directory
A lightweight component for collecting user feedback directly inside your Vaadin application.Add a feedback button to any view, or open the feedback dialog programmatically. Useful for bug reports, feature suggestions, and general user feedback — built entirely from standard Vaadin components (a single server-side dependency, no npm/JavaScript build) and localized out of the box in English, German, Finnish, and French.
```
add(new Button("Feedback", event -> {
Feedback.simple(feedback -> {
MailService.sendFeedback(feedback.getMessage());
});
}));
```
The full dialog adds a feedback-type selector (bug / feature / general) plus optional name and email:
```
Feedback.normal(feedback -> {
// feedback.getType(), getMessage(), getName(), getEmail()
});
```
You can also turn unhandled errors into user-submitted reports:
```
Feedback.registerErrorHandler(UI.getCurrent(),
feedback -> log.warn("User-reported error: {}", feedback.getMessage()));
```
The dialog offers two modes (simple / full), and can be customized by subclassing to match your application's needs.
Key features
- Simple static Java API — open a feedback dialog in one line
- Two ready-made dialogs: message-only or full (type, message, name, email)
- Turn unhandled exceptions into user-reported feedback
- Built-in translations (EN / DE / FI / FR), following the UI locale
- No JavaScript, no npm build — just com.vaadin:vaadin-core
- Customizable dialog and feedback categories via subclassing
View on GitHubFeedback version 1.1.0
Improved system information and API
Feedback version 1.2.0
Feedback 1.2.0: system crash reporting dialog and configurable system info
New
- Dedicated crash reporting dialog for unhandled errors, with i18n
- Configurable system information section (Vaadin version, view, browser, OS, language), extendable with your own fields
- Optional email UI in the test app
Fixes
- Duplicate error dialogs no longer shown
- Broken translations fixed
- errorHandler demo fixed
Other
- Example use cases in the README
- Email sending integration tests
- Releases are now published to Vaadin Directory automatically from git tags
Feedback version 1.3.0
Added mobile view support and example.