RE: Stuck in the StockWatch tutorial

2011-12-02 Thread Fat Charlie the Archangel

sowdri - 

> Looks like your host html is missing an element with id "stockList", so 
> either add it to your host page or Use the following line, without the id 
> param, 

Bing! Ned Ryerson!

all of my commercial Java was serverside code - no UI stuff at all.
So I reckon I am still used to looking for Java errors in Java code.
You've redirected my thinking. Thanks!

jim p.
---
jim puckett
New River, Arizona

http://blog.fatcharliesdiary.com

Prayer may not change things for you,
but it for sure changes you for things.

-- Samuel M. Shoemaker




-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stuck in the StockWatch tutorial

2011-12-01 Thread -sowdri-

>> RootPanel.get("stockList").add(mainPanel);

// From the javadoc

public static RootPanel 

 *get*(java.lang.String id)

Gets the root panel associated with a given browser element. For this to 
work, the HTML document into which the application is loaded must have 
specified an element with the given id.

*Parameters:*id - the id of the element to be wrapped with a root panel ( 
null specifies the default instance, which wraps the  element)*
Returns:**the root panel, or null if no such element was found*
Looks like your host html is missing an element with id "stockList", so 
either add it to your host page or Use the following line, without the id 
param, 

RootPanel.get().add(mainPanel);

Thanks,
-sowdri-

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



Stuck in the StockWatch tutorial

2011-12-01 Thread thronedoggie

Okay, I can keep retyping the same things over and over, or I can ask
for help.

(Actually, I'm doing both : )

I'm in the sample app tutorial -

http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html

- building the StockWatch web app. I'm using Indigo build id
20110615-0604. I typed it in just like it said and everything was
fine, then finished section three ("Build the User Interface" and
then, when I tried to run the test, Church was Out.

*
Exception while loading module
com.google.gwt.sample.stockwatcher.client.StockWatcher. See
Development Mode for details.

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at
com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad(StockWatcher.java:
47)
... 9 more
*

That line is

 RootPanel.get("stockList").add(mainPanel);

and it all looks just like the example - EXCEPT that the .get in the
method chain is in *italics*.

Tried some googling - couldn't find out what the italics mean.

If anyone has any ideas, I'd love to hear about it. I was having fun
with this until this happened, and I can't find any way around it.

thanks,
jim p.
at Godaddy, where they don't do a *lot* of Java, but I'd like to
help it along :L)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.