Developing Palm WebOS Mojo applications with Google Web Toolkit GWT

768 views Asked by At

Has anyone successfully developed a "native" Palm WebOS app using GWT? How do you setup your development environment and how did you interface with the mojo framework?

I was thinking one setup might be to create 2 projects: a GWT & a Palm OS project. Setup your build to copy the results from you GWT compile into the Palm OS project. Probably want to target your GWT builds at Safari.

I guess you would want to generate Java wrappers for the Mojo framework.

2

There are 2 answers

11
machineghost On

Please understand, I don't mean to offend you, but ... at first glance, this sounds like a really bad idea to me. GWT sacrifices some things to be able to do the cool stuff it does, but some of those things it sacrifices (eg. efficiency) seem very likely to be problems on WebOS. Not to mention that GWT is designed for "normal" (web browser) JS, and WebOS JS has some significant differences (in terms of the core types available and such).

Not saying it's impossible or anything, but just ... there's probably a reason you've had this question up for a week and haven't even gotten a single response.

0
Gopherkhan On

Actually, there's no reason it shouldn't work, provided you add the requisite PalmSystem.stageReady(); code into your app's index.html file. ie:

<script type="text/javascript">
   if (window.PalmSystem) {
      PalmSystem.stageReady();
   }
</script>

If you've packaged the application properly, you can actually write an app in raw JS and HTML, without ever using the Mojo or enyo frameworks. You just wouldn't be able to access MojoDB, or other similar system resources. It follows that a GWT project should work as well, with the exact same tweak.