What's wrong with that solution? How would you do it without keeping track of the element that had focus before the dialog opened?
On Tue, Jan 6, 2009 at 3:21 AM, prads <[email protected]> wrote: > > 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. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
