We are developing a web application using GWT in the UI layer. Some of the UIs needs to be dynamically generated/rendered. The data for rendering the UI comes from an external system. For example, for a specific item A, the external application provides data saying the page requires 2 text boxes with labels and one submit button. For another item B, the application provides the data saying for item B, we need to have 5 text boxes one submit button and one cancel button.
So how can we address this scenarion if we are using GWT in UI layer.
As far as i understand, the development process for GWT is:
Define the Java class with the required UI needs.
Compile the class into HMTL+Java Scripts.
Deploy the same.
If we look the above flow, dynamic rendering/dynamic UI generation looks to be impossible if we use GWT framework. Is this true? If not, have you come across any such scenarios and any solutions
thanks in advance.
The answer above is correct; you can work in "Swing-style", create panels, add widgets to them, and do everything dynamically. In fact, most of my forms are built up dynamically in this way; only with GWT 2.0 you can start separating a bit the view, by using UIBinder.
Hope this helps!
Great fan of Open Source, Linux, and web development with GWT; all of these come together for my ESSENTIAL GWT book!