Hi Ben, thanks a lot for your quick reply.

I have one question(very basic :-)) how do I put them in a list
without instantiating them? Just adding strings of the class names and
later on using Class.forName("test").newInstance();?!

On 14 Feb., 17:50, Ben Imp <benlee...@gmail.com> wrote:
> One way to do this would be to put your view list inside of a factory
> object.  This factory object would have a method to request a view for
> a given id, and return a new instance of it.  The creation of that
> view would take place inside of a runAsync block.  Your page
> controller would have to pass in a callback so it can get a handle on
> the view when its done loading.
>
> -Ben
>
> On Feb 14, 10:09 am, Gambo <mark.vanv...@gmail.com> wrote:
>
> > Hi there,
>
> > I have a question regarding GWT's runAsync feature. We have a complete
> > list of all views within the application. What I understand each time
> > a user access our webapp the complete list of view is downloaded to
> > the clients machine. I am sure we are going to have more than 200
> > views sometime so the app is getting very big.
>
> > I want to implement now the async feature but I am not sure how to do
> > this as I need the list of view to display them later in my app.
>
> > Example:
> > - User trigger click event
> > - Click event gets an ID with button clicked and is forwarded to page
> > controller
> > - Page controller looks in view list with id and display the correct
> > view
>
> > Can somebody help me with a hint? Maybe my approach is wrong.
>
> > Thanks a lot!
>
>

-- 
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.

Reply via email to