Extension that adds a reset button to any TextField component

Adds a reset button to a text field, allowing users to clear the value of the field with one click.

The reset button is drawn using SVG images in supported browsers. With IE8 PNG versions of those are used.

Also an example project for a blog post Extending components in Vaadin 7.

Usage

Either add Maven

<dependency>
    <groupId>org.vaadin</groupId>
    <artifactId>
        resetbuttonfortextfield
    </artifactId>
	<version>1.2.1</version>
</dependency>

or Ivy dependency

<dependency 
    org="org.vaadin" 
    name="resetbuttonfortextfield" 
    rev="1.2.1" 
/>

or just add the JAR to your project, compile the widgetset and then extend any TextField:

TextField tf = new TextField();
ResetButtonForTextField.extend(tf);

Install

Link to this version
StableReleased 19 April 2015Apache License 2.0
Framework Support
Vaadin 7.0+
Browser Compatibility
8
9
10
11
Install with
Release notes - Version 1.2.1
  • Fix errors in pom.xml