GWT.Beginners note

Good afternoon ladies and gentlemen,

This article is intended primarily for beginners and is unlikely to bring any benefit to people experienced. But it would be nice if people with experience would bring a couple of useful links in the comments.
The introduction I suggest to start with demo. Then you will be able to imagine what GWT can do and what widgets are available right out of the box. GWT is definitely a very strong Framework, but it is almost the most main problem lies precisely in the fact that most of these widgets are not so much. But this does not matter, because there are many different libraries which solve this problem. Special heyday was at the time 2-3 years ago when a lot of things in GWT was not simple and clear favorites among third-party libraries, too, was not noticeable. Now the situation have changed quite a bit. So if you need some sort of advanced widget, I advise you to pay attention to SmartGWT and Ext-GWT.


SmartGWT has a whole bunch of widgets on all occasions. Refer to you. Pay attention to the table, what else can you ask for? If you still something is missing, the widget you can use third party. The library has a very lively forum if you have any problem, search there. I have found answers to all my questions. You will not find yourself ask, usually answer very quickly. The library even has its own IDE, however I did not use it. That library is quite popular is the fact that the WindowBuilder plugin to Eclipse there is an opportunity to bring the GUI widgets of SmartGWT. The library has a large, in my opinion, a lack: you write a little program with a single table and the size of this piece of software will be just under 2 megabytes. Ie make a site on SmartGWT certainly will, but who will wait until it is loaded? That's why I wrote this website in "pure" GWT. But for different weblord to data banks and services used mainly for LAN, this library is the first candidate for consideration.
If for some reason, SmartGWT does not suit you, pay attention to GWT-Ext and GXT. With them, I was not working, so can not say anything, but looks not bad.

If you did decide to do a "pure" GWT, I recommend you to watch that this. Also look at these interesting demos. When I saw this I was ecstatic, this is jQuery for GWT! Now you can make a very nice animation effects with just a few lines.

But in the end a few points that are useful to know.

The server does not have spinning Java. There can be almost anything, including PHP. And maybe nothing at all if the page is not "talking" to the server. Here's a look: time, two. This thing I did for the subject "E-Learning". Page is completely static, in the sense that after loading the server does not need them.

From GWT you can call functions written in pure JavaScripte. Done this is simple, write that function and write it into native JavaScript. Here it's explained in detail.

This means that you can use in your GWT project ovsky any pure JavaScript library( here I'm not quite sure if that is correct). If you want to pull out of JavaScripta value of any variable view in the direction of the class Dictionary.

Can conversely, to write a logic on GWT, and then call it in JavaScripte. Here described how to do it.

I even have a small library that automatiseret this process.

the
Label Label = Label.wrap(DOM.getElementById("A"));
label.setText("new Text");


where "A" is id of your diva. Simple, isn't it?

Not all janowskie classes have their counterparts in GWT. For example, the Thread class to use will not work, which is understandable, because in JavaScripte multithreading in this sense is not implemented(yet).

Your supplements interesting libraries and pici welcome!
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

ODBC Firebird, Postgresql, executing queries in Powershell

garage48 for the first time in Kiev!

The Ministry of communications wants to ban phones without GLONASS