Dynamic UI

0 views
Skip to first unread message

ARK

unread,
Oct 11, 2006, 11:05:00 AM10/11/06
to Google Web Toolkit
Hi ,

I have two questions regarding the dynamic UI building.

1. According to the guideline, we should do the RPC call first at the
meantime build the UI. If my UI is based on the callback value, how
should I do? write in the callback function? Thus this should not be
async....

2. A little bit like the first one. I build the UI first after the RPC
get value back, I fill the value to the UI. But what if the UI hasn't
been built but the value has come back?

I am newbie in GWT. Any suggestion is appreciated.

Ark

Luciano Broussal

unread,
Oct 11, 2006, 11:12:06 AM10/11/06
to Google Web Toolkit
Hi,

I'm not sure understand precisely, but what is sure :

1) all gwt rpc are async call so your browser is never blocked

2) it is your responsability to verify your UI is ready when the data
come from the rpc callback or build the UI on the fly , or store the
data into a dispacher event associated with a timer that pump the
events and dispatch them to a UIManager in charge of modifying the UI
according the data received .

Regards


Luciano

Jason Essington

unread,
Oct 11, 2006, 11:19:24 AM10/11/06
to Google-We...@googlegroups.com
What I typically do is, fire off my rpc, then create as much of the
layout as possible while it is running.

From the callback, I call another method in my widget that completes
the UI by creating any additional widgets needed, and populating said
widgets with data.

-jason

Reply all
Reply to author
Forward
0 new messages