How to disable copy paste option from TextField in Vaadin 6?

I need TextField (PasswordField) to be editable but only through keyboard input, and to disable pasting values from buffer.
How can I do it in Vaadin 6?

In Vaadin 6, the only option to do this that I can think of is to create your custom GWT widget that extends VTextField and have it prevent the default action for onpaste events.

In Vaadin 7, you can do this more elegantly with an extension.

Thank you!