The simplest way is to create a public method in the dialog box and call it
after the dialog box is created and rendered to set the focus to the user
field.

On Sun, Nov 21, 2010 at 9:16 AM, Thomas Broyer <[email protected]> wrote:

>
>
> On 21 nov, 10:52, Magnus <[email protected]> wrote:
> > Hi,
> >
> > I am using a DialogBox as a login box and I would like the "user"
> > field to get the focus automatically.
> >
> > I tried txt_User.setFocus (true), but without success.
> >
> > How can I do that?
>
> You might have to call setFocus from a Scheduler.scheduleDeferred
> command:
> http://code.google.com/p/google-web-toolkit/issues/detail?id=1849
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
*Jeff Schwartz*

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to