Re: How to set focus to a textfield inside AJAX

2008-03-21 Thread Johan Compagner
Igor is right, it is strange to do a roundtrip for just the focus, but normally setting focus in ajax can be done through AjaxRequestTarget.focusComponent On 3/20/08, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I have a WMC that I added an AjaxEventBehavior(onclick) to. Inside I > want to set the

Re: How to set focus to a textfield inside AJAX

2008-03-20 Thread Igor Vaynberg
a bunch - saved my day. > > Cheers, > > > Michael > > -Original Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, March 20, 2008 3:56 PM > To: users@wicket.apache.org > Subject: Re: How to set focus to a textfield ins

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
Wasn't working until I changed the event on the radio to onFocus - just FYI :-) Michael -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 3:56 PM To: users@wicket.apache.org Subject: Re: How to set focus to a textfield inside

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 3:56 PM To: users@wicket.apache.org Subject: Re: How to set focus to a textfield inside AJAX textfield.setoutputmarkupid(true); radio.add(new behavior() { oncomponenttag(tag) { tag.put("onclick",

Re: How to set focus to a textfield inside AJAX

2008-03-20 Thread Igor Vaynberg
Message- > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 3:28 PM > To: users@wicket.apache.org > Subject: Re: How to set focus to a textfield inside AJAX > > why cant you do this with javascript without ajax?? seems like a huge > was

RE: How to set focus to a textfield inside AJAX

2008-03-20 Thread Michael Mehrle
PROTECTED] Sent: Thursday, March 20, 2008 3:28 PM To: users@wicket.apache.org Subject: Re: How to set focus to a textfield inside AJAX why cant you do this with javascript without ajax?? seems like a huge waste to have a server callback just to set focus -igor On Thu, Mar 20, 2008 at 3:14 PM, Mich

Re: How to set focus to a textfield inside AJAX

2008-03-20 Thread Igor Vaynberg
why cant you do this with javascript without ajax?? seems like a huge waste to have a server callback just to set focus -igor On Thu, Mar 20, 2008 at 3:14 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I have a WMC that I added an AjaxEventBehavior(onclick) to. Inside I > want to set the focus