Re: Setting focus to a TextField

2008-01-14 Thread Federico Fanton
On Thu, 20 Sep 2007 20:21:20 -0400 John Krasnay [EMAIL PROTECTED] wrote: I include this little script in my base page to always auto-focus the first text box. Pretty! Thanks :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Setting focus to a TextField

2007-09-28 Thread Cristina
Hi Kent, I would like to use the code snippet you're providing, but I don't fully understand it... Why are you creating an AjaxLink and then setting the focus on the TextField within the onClick() method of the AjaxLink? Thanks so much, Cristina Kent Tong wrote: Doug Leeper wrote

Re: Setting focus to a TextField

2007-09-28 Thread Eelco Hillenius
I would like to use the code snippet you're providing, but I don't fully understand it... Why are you creating an AjaxLink and then setting the focus on the TextField within the onClick() method of the AjaxLink? I think it was just an example. The question was how to set focus on a text field

Re: Setting focus to a TextField

2007-09-21 Thread Raluca Macovei
If you need to change focus from the server side: textField.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(MyPanel.this);

Re: Setting focus to a TextField

2007-09-21 Thread Kent Tong
(...); target.focusComponent(f1); } }; -- View this message in context: http://www.nabble.com/Setting-focus-to-a-TextField-tf4490766.html#a12814170 Sent from the Wicket - User mailing list archive at Nabble.com.