9

We have RoR application and we are planning to make js interface(extjs or closure) in new version. Is it possible to use GWT with RoR?

Andrey Kuznetsov
  • 11,640
  • 9
  • 47
  • 70

4 Answers4

7

Yes, using GWT with RoR is perfectly possible. Client server communication will be by JSON, which RoR can easily produce. GWT works best when you're creating a client side app in HTML/JavaScript/CSS, if you want progressive enhancement of an existing HTML UI jQuery etc. might be a better choice.

user398051
  • 141
  • 1
  • 2
    Although gwt-query (http://code.google.com/p/gwtquery/) has been getting a lot of updates recently, so that might be worth checking out too. – Arthur Maltson Jul 22 '10 at 02:37
6

As this is still the accepted answer, decided to update with more modern approaches

RESTful API

The tooling for creating and consuming API's has improved markedly.

RoR to GWT RPC project (very dated)

The http://code.google.com/p/gwt-rails/ project is intended to provide easy to use RPC between RoR backend, and GWT UI.

Community
  • 1
  • 1
Jayfang
  • 176
  • 3
  • gwt-rails is not updated around 5 years as of 2015 May, hope someone click "Export to github" button on the google code to continue development. – Joel Handwell May 14 '15 at 20:20
2

You can, but you won't have the nice RPC mechanism available with java based servers. You'll probably have to use RequestBuilder class to pass data to the server & back.

Bogdan
  • 5,368
  • 9
  • 43
  • 62
-2

I'm not that familiar with GWT but I guess in theory it's possible to use GWT cross compile Java into JavaScript which is then used within a Rails application. It sounds pretty cumbersome though.

John Topley
  • 113,588
  • 46
  • 195
  • 237