Monday, December 1, 2014

Re: Asynchronous population of combo

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:
Hello,

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 widget

the base architecture of my application is this

we have

1.XXXWidget.ui.xml and XXXWidget.java  which acts as a view
2.XXXActivity.java which is for ui actions and
3.set of  RPC classes which make the server side calling along with DTOs and Hibernate POJOs
in the backend

they way it works basically is ui is represented by the files mentioned in point 1
Activity classes will have code for calling RPC classes which will fetch data from background databases in the form of DTOs

My problem

i 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.e
ui 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 problem

thanks in advance

regards,

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