Certainly this is a trivial matter but for all the efforts put in to
write a fairly comprehensible JSNI explanation in the GWT docs, I am
unable to find any clarification on how the DOM is mapped by GWT.

Because, when I do the following (instance of user using a static
reference to Main to call refresh() ) it works:

[code file="Main.java"]
public class Main
        implements EntryPoint
{
  static public Main mainref;
  public void onModuleLoad() {
    mainref = this;

   .... yada ....

   public void refresh(){
    .... yada ....
   }
}
[/code]

[code file="User.java"]
   .... yada ....
  AsyncCallback<Hello> helloCallback = new AsyncCallback<Hello>{
    .... yada ....
    Main.refresh(); // this works.
  }
[/code]

Since a static reference works, certainly GWT through some
mysteriously way I have yet to comprehend is able to get across frames
to get to refresh(). And so could I, if I had not used GWT but coded
in pure javascript as I would have control and possess full
consciousness of the frame structure of my app.

-- 
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