How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
Hi, How to get the value of the textfield on onBlur event? The below code always prints null for shipIdTf.getInput() final TextField shipIdTf = new TextField(ship.id); shipIdTf.setOutputMarkupId(true); mawbForm.add(shipIdTf);

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread Gerolf Seitz
AjaxFormComponentUpdatingBehavior might be what you want. Regards, Gerolf On Tue, Jun 8, 2010 at 10:58 PM, jammyjohn jchinnas...@yahoo.com wrote: Hi, How to get the value of the textfield on onBlur event? The below code always prints null for shipIdTf.getInput() final TextField

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
Thanks for your reply. It worked. But I ran into another problem. Instead of getting the value of textfield value getInput(), I tried getting it from my model as dtoModel.getObject().getShipId(). This gives me the correct value(the value entered in the text field) for the first time. If I

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread Fausto Argeni Bencosme Doñe
Use OnChangeAjaxBehavior subclass. Fausto Argeni Bencosme Doñe. :D On Tue, Jun 8, 2010 at 9:42 PM, jammyjohn jchinnas...@yahoo.com wrote: Thanks for your reply. It worked. But I ran into another problem. Instead of getting the value of textfield value getInput(), I tried getting it from