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
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
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
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",
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
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
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