GWT - Update Widget when java.util.List changes
Hello, I am new here and I came to seek for advices from more experienced GWT programmers. Here is my problem: I am making AsyncCalls and they fill some collections (java.util.List) with data. These callbacks take quite a time, so by the time collections are filled, UI is fully loaded. However, widgets that are supposed to show data don't show anything. Because when they were initialized, collections were still empty. Now I need to force my collection to somehow tell my widget 'hey I have that data for you, feed yourself!', but I don't know how. I was thinking of some observer pattern, but I am not really sure. How can I solve this issue? An example would be nice! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Update Widget when java.util.List changes
Did you have a chance to go through this tutorial? http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html When you get the data, you need to populate the widgets as shown here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#invoke -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Update Widget when java.util.List changes
Hello, yes. I quite misunderstood basic principles, I asked on Stackoverflow and issue was fairly easy. Issure resolved here: http://stackoverflow.com/questions/4708486/gwt-update-widget-when-java-util-list-changes On Jan 17, 9:22 pm, Y2i yur...@gmail.com wrote: Did you have a chance to go through this tutorial?http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted When you get the data, you need to populate the widgets as shown here:http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#invoke -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.