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
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
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
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);
(...);
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.