Dynamic UI rendering using GWT

111 views
Skip to first unread message

Abhilash Nair

unread,
Jun 29, 2010, 6:29:41 AM6/29/10
to Google Web Toolkit
We are developing a web application and planning to use 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.

Jeff Chimene

unread,
Jun 29, 2010, 6:26:39 PM6/29/10
to google-we...@googlegroups.com

No.

> If not,
> have you come across any such scenarios and any solutions
> thanks in advance.

You don't get the benefits of the UiBinder for your dynamically
generated pages.

Have you tried the StockWatcher tutorial? It demonstrates creating a UI
at run-time.

Prashant Hegde

unread,
Jun 30, 2010, 1:07:48 AM6/30/10
to google-we...@googlegroups.com

> You don't get the benefits of the UiBinder for your dynamically
> generated pages.
>

I have used UiBinder in a twisted way. Create a base user interface
using UIBinder with ALL widgets that you will ever need on the page.
Based on the run time data, hide/remove from parent the unwanted
widgets. Ofcourse it depends on the application as to whether this
design is feasible.

Prashant

Reply all
Reply to author
Forward
0 new messages