There's a reason Activity#start takes an AcceptsOneWidget as argument rather than having to return an IsWidget: it can be asynchronous (and that's also why we have onCancel and onStop).
-- So you can make your RPC in onStart and only call the AcceptsOneWidget#setWidget once you've populated the combo with the results.
On Monday, December 1, 2014 4:52:04 AM UTC+1, Girish Kumar wrote:
On Monday, December 1, 2014 4:52:04 AM UTC+1, Girish Kumar wrote:
thanks in advanceui loads before the RPC calls is made this results in am empty combo box please let me know if the problem description is sufficient for a possible solution.And hignly appreciate if anyone provides me a solutions to this problemi am trying to load data in the ui(a Combo box must contain country list which must be present as soon as the ui loads fully) dynamically in order to make dynamic calls i have to invoke a RPC call in the activity class however i am not able to do that before the ui loads i.eMy problemActivity classes will have code for calling RPC classes which will fetch data from background databases in the form of DTOs3.set of RPC classes which make the server side calling along with DTOs and Hibernate POJOs2.XXXActivity.java which is for ui actions and1.XXXWidget.ui.xml and XXXWidget.java which acts as a viewwe havethe base architecture of my application is thisHello,i am new to gwt currently working on a project on gwt in my organisation i have a question about asynchronous population of a ui widgetin the backendthey way it works basically is ui is represented by the files mentioned in point 1regards,
Girish
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment