KeyListener for TextField

Hello,

i need help with keylistener and textfields. My textfield need to handle key pressed or key released events.
Did you have experience, an example or a tutorial for handling key events in a textfield?

Hi,

This is not currently handled by the core, you need to extend the base components/widgets in order to handle individual key events.

You could take a look at Henrik’s
SuperImmediateTextField
, which should get you close to that what you need.

Greet!
I’ve looked inside /contrib/HComponents but their are too many dependencies.

How can i use this in vaadin 6.2.4 or 6.2.5.

I get the following error message
Widgetset does not contain implementation for org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField. Check its @ClientWidget mapping, widgetsets GWT module descrioption file and re-compile your widgetset. Unrendered UIDL:
org.vaadin.henrik.superimmediatetextfield.SuperImmediateTextField(NO CLIENT IMPLEMENTATION FOUND) id=PID10 caption=Ort: delay=300

I think i need some implementation inside the VAADIN folder. Did you have a small Tutorial?

Martin

The version that is in contrib/HComponents is based on Vaadin 6.1 and earlier. To get a 6.2.x+ compatible version, take a look at
http://dev.vaadin.com/browser/contrib/SuperImmediateTextField
. All you should need to do, is to download the jar, drop it in your WEB-INF/lib folder and then recompile your project’s widgetset.

Hi,
How can I set the default
TextField css style
to the
SuperImmediateTextField
?
thanks