On Tue, Mar 15, 2011 at 5:20 PM, ss.require <[email protected]> wrote:
> MVP framework is a top-level gwt framework that uses all standard gwt
> features. In particular, it uses standard "code splitting" feature. I
> can split my code in  the same way as MVP does, but my initial problem
> still remains. I don't see any advantages of using MVP. Maybe, you
> mean something else or you have not understand my problem!

Using GWT's MVP can be a solution. Simply use an activity mapper that
creates individual activities using GWT's AsyncProxy (1). This way
activities are automatically code splitted with minimal code monkeying
involved.  A quick warning: It does not makes sense to code split
everything => If the split point is really small it can even decrease
performance.

Also check out the great gwt-platform project
(http://code.google.com/p/gwt-platform/). They have code splitting
also integrated into their own MVP framework. Quite nice.


Cheers,

Raphael
(1) 
http://ars-codia.raphaelbauer.com/2010/11/gwt-split-points-and-most-neglected.html





>
> On Mar 15, 3:25 pm, suersh babu <[email protected]> wrote:
>> try using MVP frame work, so that code spliting done in much better way.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Mar 15, 2011 at 5:50 PM, ss.require <[email protected]> wrote:
>> > Hi!
>> > I need to create a web-application with the design like Facebook. So I
>> > want to have a single gwt-module for the entire app and use "code
>> > splitting" feature for dynamic loading of all needed pages. But there
>> > is some problem:
>>
>> > From main page(when the module is already loaded) a user can navigate
>> > to any page of my app. The total amount of pages will be very
>> > huge(Let's say 1000). If I use "code splitting" feature I must to
>> > place the next code-fragment 1000 times in my module:
>> > GWT.runAsync(new RunAsyncCallback() {
>> >                                                @Override
>> >                                                public void onSuccess() {
>> >                                                        new
>> > SomePagelet().load();
>> >                                                }
>>
>> >                                                @Override
>> >                                                public void
>> > onFailure(Throwable reason) {
>> >                                                }
>> >                                        });
>> > Thus my single module will be a large size and the loading time will
>> > be very long as well. I want to find a way to say gwt what a pagelet
>> > to download in runtime! Now I see an only possible solution: 1)analyze
>> > compiled js scripts 2) then, extract the piece of the script that
>> > handles loading of the exclusive fragment 3)On the server I add
>> > extracted piece with specified pagelet-name to be downloaded to the
>> > output html.
>>
>> > But this approach is hard. Does anybody have similar problems? Any
>> > useful advices would be very appreciated!
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups
>> > "Google Web Toolkit" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> >http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> Regards
>> Suresh Babu G
>>
>> http://www.AccountingGuru.in<http://www.accountingguru.in/>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to