GWT as a Desktop App (no browser !)

1,115 views
Skip to first unread message

mattlf

unread,
Oct 22, 2010, 4:52:09 PM10/22/10
to Google Web Toolkit
Hi

I need to create a Desktop App. It can not be a browser App as this
App should be the only App available.
Is it possible for a GWT App to run outside the browser (on a
different runtime) as a standalone Desktop App (packaed with a
runtime?)
I came accross GWT running on top of AIR but it seems esoteric
Thank you for your help
matt

rjcarr

unread,
Oct 23, 2010, 2:05:02 AM10/23/10
to Google Web Toolkit
If you don't use any services you could use a gwt app in a browser
without internet access.

Otherwise, you'll need to embed a browser into your desktop
application. GWT is a web platform and as such needs to run in a
browser.

nino ekambi

unread,
Oct 23, 2010, 3:21:09 AM10/23/10
to google-we...@googlegroups.com
You can use the GWT  to write applications that can run in the Adobe AIR runtime.
I m about to release a library( my the end the mounth) that will help you do that
you will find it here : http://code.google.com/p/gwt4air/
With adobe AIR you just dont only out of the browser, you can access the filesystem too and do many other things.

check it out and let me know what you think



2010/10/23 rjcarr <rjc...@gmail.com>
--
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-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.


nino ekambi

unread,
Oct 23, 2010, 4:38:06 AM10/23/10
to google-we...@googlegroups.com
Why is GWT  running inside AIR esoteric ? :)
At my company we are making incredible apps just doing that. Since that give us to deploy to the browser and the desktop using the same code basis.

Greets
E

2010/10/22 mattlf <matthie...@gmail.com>

freemonhuul

unread,
Oct 23, 2010, 7:16:46 AM10/23/10
to Google Web Toolkit

Aladdin

unread,
Oct 23, 2010, 9:51:38 AM10/23/10
to Google Web Toolkit
There is a browser component that can embed IE inside swing, just wrap
your app with it. I think it's part of the java desktop
http://javadesktop.org/articles/jdic/index.html


Other than that , just use java and swing !

Stefan Bachert

unread,
Oct 23, 2010, 10:10:53 AM10/23/10
to Google Web Toolkit
Hi matt,

this requirement are somewhat strange. Anyway,
I would rather for a possibility to modify an open source browser in
such a way,
that he is only allowed to open one URL (an this automatically).
Maybe remove URL entry and set the initial url to your site.

This is in the end no GWT question

Stefan Bachert
http://gwtworld.de

Olx

unread,
Oct 24, 2010, 9:40:56 AM10/24/10
to Google Web Toolkit
Hi,

depending on requirement to desktop native integration you can
consider:
- Titanium (http://www.appcelerator.com/)
- Mozilla Prism (http://prism.mozillalabs.com/) in fact wrap your html/
js app with xulrunner.
- Adobe Air

Alternatively you can use Webkit and a programming language of your
choice to write a custom wrapper.

From my own experience Titanium does perfectly the trick ;)

Cheers,
Alex.

On Oct 23, 4:10 pm, Stefan Bachert <stefanbach...@yahoo.de> wrote:
> Hi matt,
>
> this requirement are somewhat strange. Anyway,
> I would rather for a possibility to modify an open source browser in
> such a way,
> that he is only allowed to open one URL (an this automatically).
> Maybe remove URL entry and set the initial url to your site.
>
> This is in the end no GWT question
>
> Stefan Bacherthttp://gwtworld.de

Be-noix

unread,
Oct 24, 2010, 12:50:09 PM10/24/10
to Google Web Toolkit
QT is pretty easy to use and has WebKit in it, with the full support
of javascript.
You can compile your app for Win, Linux, OSX, ...

Ben

On 23 oct, 10:10, Stefan Bachert <stefanbach...@yahoo.de> wrote:
> Hi matt,
>
> this requirement are somewhat strange. Anyway,
> I would rather for a possibility to modify an open source browser in
> such a way,
> that he is only allowed to open one URL (an this automatically).
> Maybe remove URL entry and set the initial url to your site.
>
> This is in the end no GWT question
>
> Stefan Bacherthttp://gwtworld.de

Steve Moyer

unread,
Oct 30, 2010, 12:59:14 PM10/30/10
to Google Web Toolkit
Without a browser is a bit nebulous ... but I'll tell you what I'm
doing and you can judge for yourself whether it meets your
requirements.

If you create the proper manifest, a web-application can be stored on
the user's hard-drive and run while off-line. I use Mozilla's Prism
as the "non-browser" ... it looks just like the application in a web
browser but has no navigation controls. Once you've got an off-line
application running, you'll also need to store the data locally. This
is only a little bit harder thanks to HTML5. Use the localstorage
calls in the Javascript engine to allow storage to the local hard-
drive. Note that this storage is a map controlled by the browser, so
you can do rudimentary indexing if you're smart about picking your
keys, but you do NOT have complete access to the local hard drive and
the total amount of storage allocated is limited by Prism (but can be
expanded by the user).

Here's a link to get you started with both off-line application
caching and localstorage: http://www.w3.org/TR/offline-webapps/

Hope this helps!

smoyer
Reply all
Reply to author
Forward
0 new messages