Doug Leeper wrote:
> 
> I know this is probably one of the most trivial things to do...but I am
> stumped.  No example that I found on the Wicket example site has shown
> this.  I know that AjaxRequestTarget#focusComponent plays a part in this
> but not sure how.  Could someone post a quick code snippet or place on the
> Wiki on how do to this in 1.3?
> Thanks
> 

For example, your TextField is f1, then:


                AjaxLink link = new AjaxLink("link") {
                        public void onClick(AjaxRequestTarget target) {
                                target.addComponent(...);
                                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.

Reply via email to