andydoroga1989 / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

GWT Gadget using RootPanel.get("divId").add(widget); #372

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: Current, 1.03...

Detailed description:
 using RootPanel.get("divId").add(widget); to bind the widget to the page for gadget.

I think documentation asserting to the use of adding a widget to a div tag 
should be noted, and 
not used. Or a gadget HTML could be included in the war and parsed and included 
during 
compile. Could add native html and javascript to be included the gadget compile.

Workaround if you have one:
Take the "divId" out of RootPanel.get().add(widget); instead of 
RootPanel.get("id").add(widget);

Links to the relevant GWT Developer Forum posts:
http://code.google.com/p/gwt-examples/wiki/project_Gadget

Great job on the Gadget GWT Api Development :)

Original issue reported on code.google.com by branflak...@gmail.com on 26 Apr 2010 at 12:40

GoogleCodeExporter commented 9 years ago
I'm sorry, I'm having trouble understanding what this report is about.  Are you 
reporting that there is a problem with the current examples distributed with 
the gwt-
google-apis source?  Or are you saying there is a different way to make an 
example 
that should be documented?

The RootPanel class has been used to insert a widget into a div for quite a 
while.  I 
think multiple GWT samples work like that.

http://google-web-
toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/RootPanel.h
tml#g
et(java.lang.String)

Original comment by zundel@google.com on 26 Apr 2010 at 4:07

GoogleCodeExporter commented 9 years ago
I merely suggesting more documenting not using 
RootPanel.get("elementId").add(widget) in entrypoint of the 
GWT app. I used it, and it caused a failure that wasn't thrown durning my 
gadget deployment.

Original comment by branflak...@gmail.com on 26 Apr 2010 at 4:11

GoogleCodeExporter commented 9 years ago
I mean GWT Gadget App, in the previous comment. Referencing an ElementId, which 
wouldnt exist in this type of 
deployment currently.

Original comment by branflak...@gmail.com on 26 Apr 2010 at 4:13

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 7 May 2010 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 23 Jun 2010 at 3:35