Hi,
I wrote an Application that provides some Javascript methods and their
Java dependents. These Javascript functions are working like an API.
The problem is that the GWT-Compiler missunderstand my thoughts.
Because the Function isn't called in the application itself, but from
other applications, the compiler compiles something like
public void processPage(BasePage page){
Window.alert("Processing Page");
Window.alert(page.getTitle());
}
to
com_google_gwt_user_client_Window_alert__Ljava_lang_String_2V("Processing
Page");
null.nullMethod();
And If i just call the method on initialize with a test-object (a
instance of basepage which returns a static String "Testpage" or so)
the GWT-Compiler tries to raise the performance and just copies the
two lines in the init-function and instead of returning the
objects.getTitle() function Just hard-compiling the "TestPage" into
the javascript.
How can I get out of this, or is this bad programming style in
general?
--
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.