Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
tomas schroeder
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.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic