Developing Google gadgets with GWT - gwt

I successfully created gadget using Getting Started with Gadgets and GWT
I want to know:
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?
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 access http://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?

yes using apache shinding, but it is still a hassle.
multiple entry points can work for you but you have to differentiate on how you make your calls to the server. Normal GWT app can use RPC for example but Gadgets must use IoProvider.

Related

Is possible to combine rest-api and angular profiles on Grails?

I'm going to start a new project that has two front ends, a mobile APP and a Web Application.
I was thinking about creating a "rest-api" grails application and consume this "api" from the mobile apps.
But, for the WebApp, is it possible to create a new "angular" Grails app that uses as model the previously generated "rest-api" Grails application and ovoids me to "re-implement the wheel (model)"?
Any articles/documentation how that could be accomplish?
Thanks in advance.
JD Evora
You can use the domain you already have in the new rest api, nothing changes. You may want to add the #Resource annotations.
If there is another app that uses this same domain, I would put in a plugin(as #Joshua suggested), we currently do it for clients which have both admin/cms and final user applications.
In our company,we are currently developing 3 projects with an idea I believe will fit well to your needs, or may help someone else who is starting a similar project
We organized the apps this way:
We've created a grails app with rest-api profile
We've created a grunt/bower/npm project(you could use yoo angular generator, but It had more than we needed)
We've created an android and and ios apps
Advantages we've seen:
The angular application calls the same methods as the mobile apps, there is only one controller, one service, one grails app
The web apps is pure JS and CSS and runs smoothly in the serve(npm
install serve)
You can deploy the web app in any CDN like Amazon Cloud Front and be able to handle a big demand, and you can deploy it quickly
Just in case you don't know, but with grunt and bower you can replace assets pipeline automation.
Hope it helps you!

Worklight integration to IBM Forms

Is it possible to integrate Worklight hybrid apps to IBM Forms ?
Or is it at least possible to invoke a remote web page url during (not startup) app usage and return to the app on completion using some page events.
Btw, I'm aware of the Forms -> Portal -> Worklight integration. But that too seems to be when the entire app is just a container for the Portal web application.
Regards.
Not sure exactly what is supposed to happen after you "invoke the remote web page", so w/out knowing this I can think of right now two approaches:
Use Cordova's InAppBrowser to open an external URL w/out exiting the application
See this training module: Integrating server-generated pages in hybrid applications (sample app)
There are a number of different ways to include/launch server side content in a Worklight app. The challenge is always communication between the Worklight app and the server side app.
Putting the server side content in an IFrame allows message passing between the server based app and the worklight app, but IFrames work very badly on mobile platforms. You end up with all sorts of scrolling, layout and scaling headaches.
If direct communication isn't required, then there are a number of options that are fairly easy to implement. I have a blog post looking at different methods of including server side content in a Worklight app here.

Can I write a plugin for google earth desktop application?

It seems the preferred way to use Google Earth in an application is to embed it within a web page then access it via the javascript API.
However, rather than embed it in a web page, is it possible for some code to embed new functionality within the Google Earth desktop application itself? or is writing my own app with an embedded web browser my only option?
is it possible for some code to embed new functionality within the Google Earth desktop application itself
Depends exactly what you want to do. Can do a fair bit (but not everything!) with KML and in particular NetworkLinks.
is writing my own app with an embedded web browser my only option?
Not the only, but probably the most flexible.
Google dropped support for the COM API (ie. the desktop app) some time ago. The COM API was pretty terrible even on the best of days anyway.
What you could do is write an app that uses an embedded web browser -- and that web browser is what is viewing your Google Earth instance. Then you get the full features of the web API, plus the robust features of your language. If you use C#, you can use Google's API (which has a C# binding) and connect that to the javascript events as needed (ie. to figure out when the user clicked stuff in the web page.)
Here's an excellent point where you can get started:
http://code.google.com/p/winforms-geplugin-control-library/
In all seriousness -- having worked with the old COM API for nearly 2 years -- I'm glad it's gone. You really don't want to use it.

How GWT and PhoneGap works together?

I have been working with GWT projects, and the scenario with GWT is that it is compiled then deployed to a web server (like Tomcat), however I want to try out PhoneGap, so I can develop a Android / Iphone app using a single code base and perhaps using the familiar web-style UI.
If I use GWT with PhoneGap, would the application still need a back-end web server to display the UI?
The answer to your specific question is no, you do not necessarily need the back end web server to display the UI. That does not mean that your application will seamlessly work in phonegap though. If you limit your GWT app to just client side code and call services outside of the GWT app you should be producing a web app that you can grab all of the content of the war minus the WEB-INF directory and drop it into phonegap (or the web server of your choice) and run the app without a java application server. I have had very good success with running my applications on Apache HTTPD Server this way. I have had limited success running it in PhoneGap though. Some parts of the applications function fine, others do not. So you will have to do quite a bit of testing to find out what works and what doesn't and then restrict your work accordingly but in principle it is possible to use GWT for developing a UI to use in PhoneGap.

Web based Iphone / Android app

I am considering developing an Iphone/Android application but I want the information on it to be live and uniform between platforms... Therefore it seemed logical to me to make it web based. I would however like to be able to achieve certain non web based functions such as adding events to the calendar and gps locations on the the mapping sortware.
My questions are:
Can I make a web based
application that does not visually
show in a browser?
Can I add additional functions that
are not natively available in a
browser e.g <a href="#"
title="adddate:110911"/>Add to
Calendar</a>
Would it be a lot of work to make
such an app as the majority is web
based (I mostly progam in PHP so
coding for Android and Iphone will
take me some time to get my head
around).
All of the questions are for both Iphone and Android.
Thanks
I would recommend using a cross platform solution like phonegap (with UI sencha touch on top of it).
You can have an app that is a thin shell over the system browser, and exposes the non-Web bits of functionality to the contained HTML via JavaScript interfaces. You will still need two different codebases for iPhone and Android, but the essense of the app will be still webby.
There's no way to manage the system calendar from Web apps neither on iPhone nor on Android, AFAIK.