tags:

views:

155

answers:

3

Hi,

I'm designing the user interface. It has some static content and a lot of widgets.

Wich is better?

  • HTML with a widget containing the other widgets
  • HTML containing all widgets

thx a lot...

A: 

i'm also working on project with a lot of widgets (maybe over 250) and i think, one widget, which contains all others is the better way.

cupakob
A: 

How about a mix? If there are widgets that logically go together, group them into a containing widget. Then put a smaller collection of widgets into your big containing widget.

LH
+2  A: 

I addressed this very question in a presentation to a local JUG meeting the other day.

Which is better depends on what problem(s) you are trying to solve. Usually that means what pain you are trying to avoid from previous projects.

If you find it to be painful to include the static content in your GWT Module code, then your second option looks more appropriate. If the different widgets need to interact with each other (e.g. updating one refreshes the others), then your first option will contain the less pain.

Do you like the declarative style of GUI generation? If so, then consider using UiBinder which is included in GWT 2.

Glenn