This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply 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: 8435

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?

[Donate a pint, save a life!] [How to ask questions] [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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JavaScriptException: (TypeError): Object [object Object] has no method 'push'
 
Similar Threads
[solved] authorization with phaselistener problem
Junit4+Eclipse+Selenium RC- Test class should have exactly one public zero-argument constructor
get action property
problem with connecting to a SQLServer database
Run a single instance of application at all the times