Set autocomplete off for V7 and V8 field components

AutocompleteOffExtension is an extension for both Vaadin 7 and 8. It can be used to set the autocomplete attribute to disabled for Vaadin components extending AbstractField, such as TextField and DateField.

The extensions sets the attribute of the input element to autocomplete=off in Google Chrome, and to a random number in others that do not respect the 'off' value.

UPDATE

There is a reported regression in Chrome that potentially breaks the extension! You can follow the progress of the issue in the Chromium bug portal.

Version 1.1 of the addon adds two methods, setAutocompleteOffWithRandomNumber and setAutocompleteOffWithManualValue which can be used to circumvent issues with Chrome.

Install

Link to this version
ExperimentalReleased 14 January 2020Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 7 (1.0)
Install with
Release notes - Version 1.1

Version 1.1.0

  • Added setAutocompleteOffWithRandomNumber method
  • Added setAutocompleteOffWithManualValue method