Embedding Google Docs (-like) functionality - gwt

I'm looking for a way to embed Google Docs itself--or a Google Docs-like real-time collaboration of text documents--into a web platform built with Vaadin on top of Google Web Toolkit. Currently our users won't be creating Google IDs and, ideally, we wouldn't need them to (if embedding Google Docs itself). Thanks in advance!

Could you embed the document in an iframe as shown here? (in 5.17.3 Browser Frames)

If you just need a text editor, another solution can be to embed tinymce within you GWT client:
http://tinymce.moxiecode.com
We did it on our project and it works perfectly

Related

Eclipse RAP Web Application and Google AdSense Integration

I am planning to develop a website in Eclipse RAP, as I am a Eclipse fan and know bit of RCP. And I would like to make use of the Google AdSense so that commercial ads can be displayed in my web site. As RAP is bit different from regular web applications, I would like to know whether Google AdSense can be used in my RAP based web site.
Also I came across some news regarding the restriction on number of concurrent sessions in RAP based web applications. What is the maximum limit? Will it be improved in the newer versions in future? Kindly clarify the same. Thanks in advance.
I don't know about AdSense specifically, but you should have a look at the Browser widget. It's a widget that can contain any HTML/JS and renders as an IFRAME in the web browser.
Update: as a workaround, you could add an HTML element in a JavaScript snippet that you send to the client using JavaScriptExecutor. This snippet could append an element to the document using plain DOM API, or append an element to a RAP widget using the RAP client API. Have a look at rap.getObject() and Widget.$el.
Yet another approach would be to develop a custom widget.

Multiple layers of zones on a page google tv jquery ui lib

I'm using google tv jquery ui library to build app. I want to build multi page in one html file. I follow example : http://gtv-resources.googlecode.com/svn/trunk/templates/html-01/index.html, but it using 2 html files to switch between app. Please show me example code to manage multi page in one html file, thanks
If you'd like to do multi page web using single html, you could use layers. You should look at examples BuildPhotoPages or BuildVideoPages here:
https://developers.google.com/tv/web/lib/jquery/
Thanks.

use Google Translate in GWT project

I've created a project in Google Web Toolkit 2.4. Many of the the elements in my web page are created with GWT (buttons,treeItems etc).
Is there a way to use Google Translate in order to do the translation? Is there an API for Google Web Toolkit?
take a look at http://code.google.com/p/gwt-google-apis/wiki/LanguageGettingStarted

Google web toolkits - multiple pages

On the google website there an example of a simple GWT appliatoin, following is a link:
http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html
The above application has a host page:StockWatcher.html
and StockWatcher.java is the entry point.
If I wanted to add more html pages to this application, we keep one single host page and the entry point will add different panels depending on which link the user clicked on? In this case, how to know which link the user clicked on? If I create a navigation panel and each link has a request parameter, then after the user clicks on the link, How to get the request parameter?
Are there any tutorials available online on how to create a fully functional application? The one example google provides is too simple.
Thanks so much in advance
You have two options to have multiple page web application using gwt.
1) Use gwt history feature and listen for the history change. In this approach at the initial page load itself browser downloads all the javascripts(Including the widgets which are not useful in current link). Still this can be avoided by using gwt code splitting.
2) Create multiple modules. In this case you have to create multiple html pages and GWT entry points. For each major functionality create a gwt module and link that with [modulename].html file. In this approach browser downloads only particular feature's javascript. Not all the javascripts.
Based on your application requirement you can pick one of the option. IMHO I would suggesst second option.

Can we connect 'phonegap api ' application with pure native application(obj-C) code

I am doing a project.
The first page should be the web page r 'phonegap api' html page.
when a perticular link r button is tapped , it should be taken to the native Application,purely obj C,Pure native App(with view controllers, table views etc).
Can we connect the html page with the pure native code? If yes, Then Plz tell me how?
Thanks in advance,
Bharath gangpalli
You could create a PhoneGap plug-in, which is a custom extension to the PhoneGap API. It includes a bit of native code that does some native-specific functionality, as well as a JavaScript interface that then exposes this functionality to you, the PhoneGap developer. By definition, a plug-in is platform-specific!
In your case, you could create a plug-in that then pushes a new View to the top of the app (overlays over the HTML page, for example).
A good place to start would be Jesse's blog post about them; note that these are specifically for iPhone:
http://blogs.nitobi.com/jesse/2010/04/01/iphonegap-plugs/
Here are some examples of existing PhoneGap plugins, how to use them, and links within to the source code to see how they were built:
https://github.com/phonegap/phonegap-plugins
http://blogs.nitobi.com/shazron/2010/07/12/phonegap-iads-plugin/
http://blog.urbanairship.com/blog/2010/06/09/phonegap-push/
http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin-for-downloading-url
i think you can do that by using the phonegap exec function