prads
unread,Jan 6, 2009, 3:21:24 AM1/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hi all,
As per a requirement in my application, I need to set the focus on the
element for which a dialog box was opened, after the latter is closed.
So, there could be a row in a table for which a dialog box could be
opened by the user. After the user closes the dialog box, I need to
restore the focus back to the element. We have used JSNI for setting
the focus back on the element and this part seems to work correct.
The problem is in figuring out the element on which the focus is to be
restored. I can pass the element to the customized show method of the
dialog box (overriding it in a class which extends DialogBox) and use
it when the hide method is called. Somehow, I dont find this solution
very convincing. So, if there is something in GWT which support the
functionality which I wish to achieve, it would be great.
Please provide me ur suggestions ASAP.