Developing Google gadgets with GWT

21 views
Skip to first unread message

Михаил Марёнов

unread,
Jul 23, 2011, 2:23:07 AM7/23/11
to google-we...@googlegroups.com

I successfully created gadget using Getting Started with Gadgets and GWT

I want to know:

  1. Is it possible to work on gadgets in development mode? I want to change the code and see the results. Or i need to compile and publish the gadget every time i change code?

  2. I want my GWT GAE application to be both normal GWT app and a google gadget. When user enters http://mygadget.appspot.com/ i want him to see normal GWT app. But when user accesshttp://mygadget.appspot.com/axogadget/com.axdms.gadget.client.AxObjectGadget.gadget.xml he gets the gadget. Is it posible? Or it has to be 2 different GAE applications? (Normal GWT app and gadget have different functionality). Multiple entry points?

Eric Ayers

unread,
Aug 2, 2011, 10:25:11 AM8/2/11
to google-we...@googlegroups.com
You can manually create a gadget spec and use exactly the same
application for both, but your app won't be able to use the gwt-gadget
API, because it bootstraps from a subclass of Gadget, not EntryPoint.
If you use the gwt-gadget library, it substitutes a different primary
linker and automatically creates the gadget.xml file for you, but
doesn't generate a regular web page bootstrap.

I suggest you use two different top level GWT module definitions and
then just inherit the same sub-modules to implement your app. That
way, you should be able to share a good deal of logic between the two
different ways of accessing your app.

> --
> 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/-/Iil9t7vTNTEJ.
> To post to this group, send email to google-we...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--
Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229

Reply all
Reply to author
Forward
0 new messages