Vaadin alternative for heavily loaded UI

dma_k picture dma_k · Jan 4, 2012 · Viewed 9.5k times · Source

Currently I am programming the Web Application based on Vaadin. I am quite happy with the learning cycle and the way how easy UI can be designed.

In general pluses of Vaadin are:

  • "Native" UI programming for Java users (component hierarchy / event listeners / drag & drop / validation).
  • Out-of-box nice collection of components (tree / table / list / ...).

The minuses are:

  • Big and complex HTML output. That slows down the browser response time (also mentioned here and there) and leads to some rendering peculiarities from browser to browser.
  • Difficulties in handling big number of components (see Can CustomLayout handle 5000 components?).
  • The need to recompile the widget set if you use 3rd party components.

My question to community is:

What Web Framework fits best the following requirements:

  • Separation of presentation with event/action handlers.
  • Common components out of box (with advanced features like table column drag&drop, lazy loading).
  • Layout support (no headache with padding and alignment of components).
  • Event propagation to server and server-side event processing.
  • Possibility to generate your HTML (if framework is not HTML-based) and also capture events for it (e.g. mouse clicks).
  • Possibility to register key stoke callbacks (e.g. Ctrl-S) is a plus.
  • Short learning curve for Java developer is a plus.

The sensible mix of approaches would fit as well. Please, provide the link for "Hello World" application, implemented based on the framework that you suggest. I am considering Apache Wicket / Echo2 / Tapestry / Click / GWT, but it's difficult to make a choice without playing for couple of months (hopefully with no deep disappointment).

Answer

Remis B picture Remis B · Jan 5, 2012

I completely agree with all your mentioned minuses and can not say very much against. Because I'm quite new in GWT I can only share my little experience I have collected other last 2 months.

  • Separation of presentation with event/action handlers.

I think UiBinder with annotation @UiHandler("closeButton") @UiField in GWT 2.0 and later is exactly for separation HTML form code and handlers. Also MVP pattern with event bus is perfect answer from GWT team.

  • Short learning curve for Java developer is a plus.

I'm not naive and I don't think that it's possible to get quality result only with java knowledge without understanding WEB technologies.

Most of GWT UI frameworks I have reviewed and read about, introduces more problems than solutions. They somehow manages to and one or few benefits and restrict you from other features which comes in the new releases of GWT. I have chosen not to use vaadin because I felt like It will force me to do webapp development in their way, which I agree is fast easy to understand, but somehow limited. I like to have some freedom by choosing classic GWT without fancy controls.

Also I also feel that GWT UI Components are limited and there is no quality alternatives. Something is wrong here. I think google team have to do something on this part.

Regards RemisB