Using GWT in Microsoft Vista Sidebar widgets

8 views
Skip to first unread message

dzhang

unread,
Jun 22, 2009, 9:14:55 AM6/22/09
to Google Web Toolkit
Hey guys,

Does anyone know if it is feasible to use GWT in a Vista sidebar
gadget?

I wrote a simple gadget to attempt to do this, and it works in the
browsers, but not in the gadget itself (i.e. gadget doesn't load)

There's no server side code, and it's just all client side.

Has anyone ever had to deal with this? Is there a way to make GWT
target just IE?

Sumit Chandel

unread,
Jun 24, 2009, 3:08:44 PM6/24/09
to Google-We...@googlegroups.com
Hi dzhang,

I'm not very familiar with Vista sidebar gadgets, but from what I've read in the Vista Sidebar developer guide, it should be possible to use a GWT application as a Vista Sidebar Gadget. You can test this out for yourself by copying over GWT-generated sample application files (JS and HTML) in the prescribed directory in the Vista Sidebar Gadget documentation.

For example, try copying over the Hello sample application resources (samples/Hello/war/Hello.html and everything under samples/Hello/war/hello/) to your Vista Gadget directory, along with the gadget manifest file. The steps are described in the developer docs (link below).

Vista Sidebar Gadgets developer guide:

It would make sense to only deploy the IE version of your application to the Vista Sidebar Gadget (assuming it uses an IE rendering engine). You can make the GWT compiler generate the IE-specific application files only by specifying the following elements in your module XML file:

<set-property name="user.agent" value="ie6" />

Hope that helps,
-Sumit Chandel

dzhang

unread,
Jun 24, 2009, 3:20:57 PM6/24/09
to Google Web Toolkit
Thanks for the response. I've never actually thought of trying one of
the sample apps, only my own.
I'll give that a go and see how it works out


Thanks!
> > target just IE?- Hide quoted text -
>
> - Show quoted text -

Aldo

unread,
Jul 8, 2009, 9:56:58 AM7/8/09
to Google Web Toolkit
Were you able to build the Vista Gadget? I followed Sumit's suggestion
but I get the IE browser openned when I install the gadget. I believe
this happens because of the deferred binding that GWT uses, but I'm
not sure of that. Did you have to do anything else other than Sumit
mentioned?

Thanks

On 24 jun, 16:20, dzhang <porkchop...@gmail.com> wrote:
> Thanks for the response. I've never actually thought of trying one of
> the sample apps, only my own.
> I'll give that a go and see how it works out
>
> Thanks!
>
> On Jun 24, 3:08 pm, Sumit Chandel <sumitchan...@google.com> wrote:
>
> > Hi dzhang,
> > I'm not very familiar withVistasidebargadgets, but from what I've read in
> > theVistaSidebardeveloper guide, it should be possible to use a GWT
> > application as aVistaSidebarGadget. You can test this out for yourself by
> > copying over GWT-generated sample application files (JS and HTML) in the
> > prescribed directory in theVistaSidebarGadget documentation.
>
> > For example, try copying over the Hello sample application resources
> > (samples/Hello/war/Hello.html and everything under samples/Hello/war/hello/)
> > to yourVistaGadget directory, along with the gadget manifest file. The
> > steps are described in the developer docs (link below).
>
> >VistaSidebarGadgets developer guide:http://msdn.microsoft.com/en-us/library/bb456468(VS.85).aspx
Reply all
Reply to author
Forward
0 new messages