Textfield validation in vaadin onkeypress

Hi,

i am using NumberField field= new NumberField ();

for numeric validation and it is woking fine for me,it is addon
so i dont want to use this addons.
i want achieve this numeric validation on
keypress
by simple TextField .
[b]
TextField field= new TextField ();

please help
[/b]

So you want to use server side Vaadin validation that happens during typing? If this is the case, see MTextField in Viritin add-on. It contains method called setEagerValidation, use that to to turn the feature on. It is also on by default if you use it in AbstractForm or via MBeanFieldGroup.

cheers,
matti