• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JavaScriptException: (TypeError): Object [object Object] has no method 'push'

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my code:


First of all LoginWindow and MainMenuWindow are actually Panels (com.gwtext.client.widgets.Panel).
The Exception accurs when the second panel is created, Doesnt matter what the order is.

What I am looking to achive, is moving from the login screen to the mainmenu screen.
How do I do this..?
do I redirect the url? do I change panels?
How do I associate a GWT window to a certain URL? except for using the entry point..

I`m guesing that my problem is in the design.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.
In future while posting code, please UseCodeTags. I have added them in your original post. As you can see they make the code much more easier to read and understand.

The Exception accurs when the second panel is created, Doesnt matter what the order is.


Can you paste the stack trace?
 
tomas schroeder
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Dont need Help, But thanks anyways.
I Have found the Problem:
It seems the problem is only on the Panel Class, And when using panels that extends that class, Any one of the meny class`s seem to work good.

I dont fully under stand the reason, but I this seems to be the solution.
 
You've gotta fight it! Don't give in! Read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic