Hey,
This is a problem in My App engine application.
I`m guessing that im just a newbie that doesnt get the hole design of GWT.

This is my code:

public void onModuleLoad() {
// Check login status using login service.
LoginServiceAsync loginService = GWT.create(LoginService.class);
loginService.checkLogin(GWT.getHostPageBaseURL(), new 
AsyncCallback<Boolean>() {
public void onFailure(Throwable error) {
}

public void onSuccess(Boolean isLoggedIn) {
if (isLoggedIn) {
loadMainMenu();
} else {
loadLogin();
}
}
});
 RootLayoutPanel.get().add(main);
}

public void loadLogin() {
main.clear();
LoginWindow loginPage = new LoginWindow(new EnterHandler());
main.add(loginPage, DockPanel.CENTER);
        }

        public void loadMainMenu() {
main.clear();
MainMenuWindow mainMenuPage = new MainMenuWindow(new ExitHandler());
main.add(mainMenuPage, DockPanel.CENTER);
}

LoginWindow and MainMenuWindow  is of type PANEL and not window.

The exception is thrown when creating the second PANEL, doesnt matter wich 
of the windows is second.
the "JavaScriptException: (TypeError): Object [object Object] has no method 
'push'".
Specificlly when I add an item to the container inside the constructor of 
one of the PANELS,

What I wanted to do is Just to Remove the login panel from the screen and 
Add the main menu panel.
I tried alot of diffrent ways to remove and add the panels, but all has 
failed for me..

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Iqg3vdoOoz4J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to