I’m building a REST web server and I need to choose a UI framework which would work well with Java ee 6 REST web services. I want the UI to be very efficient and have all the AJAX and JQuery capabilities like loading the data from the server without refreshing the page. New data gets added often so I need the UI to display new data every 3-5 seconds … drag and drop feature etc.
I’ve been reading up on GWT and here are my questions:
-
GWT compiles the Java code to Javascript right ? Obviously Javascript is not good for SEO but does using GWT makes it Google SEO friendly ?
-
Performance vise – is GWT quicker then using Javascript tools like redis, JQueryUI or AJAX or one of many other javascript UI frameworks or they all are the same ?
-
GWT also supports server side coding in the GWT project itself correct ? Is there a benefit of writing server side code in the GWT project then building it in a different project or is this a silly question and it does not really matter where I write the server side code ?
I think that there is no solution, because there is no problem. With GWT you can make web applications not web pages.
Loading time of you application.
Divide your application in logical parts, when a user wants to a particular part of the application, it should load only the required resources only. its other parts will loaded on demand. So, More or less a design issue you will have to deal/manage with.
Rendering time for widgets, views, etc.
GWT creates its own DOM. In the JQuery usage existing HTML and is enhanced upon.
Data transfer time to/from server and client.
No significant difference.
GWT support many ways to send/receive data from/to server. This does not force you to write your server side code in your GWT project itself. But, If you choose so, you will have the shared model classed and other utility classes in your reach on both client and server. You can write your code in a defferent project too, But in that case, you will have to implement some way to manage the share code(such as, build tools).
The Biggest gain:
With GWT, you can build your applications using a real object-oriented language and take advantage of Java tools like Eclipse that are already available.