*
The moose likes GWT and the fly likes  JavaScriptException: (TypeError): Object [object Object] has no method 'push' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark " JavaScriptException: (TypeError): Object [object Object] has no method Watch " JavaScriptException: (TypeError): Object [object Object] has no method New topic
Author

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

tomas schroeder
Greenhorn

Joined: Oct 01, 2011
Posts: 2
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

Joined: Jul 26, 2007
Posts: 10167
    
    8

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?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
tomas schroeder
Greenhorn

Joined: Oct 01, 2011
Posts: 2
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaScriptException: (TypeError): Object [object Object] has no method 'push'
 
Similar Threads
get action property
[solved] authorization with phaselistener problem
problem with connecting to a SQLServer database
Run a single instance of application at all the times
Junit4+Eclipse+Selenium RC- Test class should have exactly one public zero-argument constructor