Monday, January 7, 2013

Re: Code Splitting Simple Example Still getting Thrown into Left Overs

Ed, thanks for the reply.


I did some more digging off of the link you sent and, although I don't think this is the same issue, I found the following issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5069

(Note: I switched versions to 2.4 and still had the same problem)

It seems I was using both -draftCompile and -compileReport

I removed -draftCompile and it split the simple example correctly.

As for my ultimate goal of Code Splitting using MVP/GIN, I am unable to get the solution found here:
https://gist.github.com/3038878
to give the correct split points as it links a dependency on the abstract method createInstance().

I have since created a new test branch with solution found here: 
https://github.com/zarinfam/hello-mvp-async

my branch is at:
https://github.com/ashtonthomas/gwt-async-mvp-gin/tree/act-async-mapper

This is producing the correct split points; however, AFAIK we haven't found a silver bullet for GIN/MVP/Code Splitting:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5129#c28

I will look into both solutions to see if I can find my error (if it is something I am doing wrong) or a possible work-around:
- Thomas' ActivityAsyncProxy - not breaking dependency chain (problem my config/implementation)
- Saeed's async mapper - Edge cases 

If anyone has some input, I would greatly appreciate it as I am just recently digging into Code Splitting.

Thanks!
-Ashton


On Sunday, January 6, 2013 5:42:38 PM UTC-5, Ed wrote:
I haven't looked in detail at your code, but you might experiencing the same problems I had, see this issue (and the linked forum post):


Op zaterdag 5 januari 2013 17:27:51 UTC+1 schreef Ashton Thomas het volgende:
I would greatly appreciate some input here. I am trying to use the below references to implement Code Splitting w/ Activities/Place/GIN

HOWEVER, I can't get anything to work. Not even a simple solution which I 'think' should be working regardless of my current implementation for A/P+GIN...

Thomas' ActivityAsyncProxy https://gist.github.com/3038878 (This is the method I am trying to use)

Other References:

My Hope is that I am doing something blatantly wrong. I have a simple Split Point that creates a string and custom widget (very simple) and shows a PopupPanel. However it still gets thrown into the Left overs.
My end goal is the complete solution to MVP/GIN (which originally didn't work so I thought I'd try this simple solution - no luck so I'm coming to you guys:)


I've attached a piece of the Compile Report and including the below links for better reference:


Button b = new Button("Click Me", new ClickHandler() {

      @Override

      public void onClick(ClickEvent event) {

        GWT.runAsync(Application.class, new RunAsyncCallback() {

          @Override

          public void onSuccess() {

            String sp3 = "3sp33sp33sp33sp33sp33sp33sp33sp33sp33sp33sp33sp33spp3";

            VerticalPanel vp = new VerticalPanel();

            vp.add(new InlineLabel(sp3));

            MySPTestWidget t = new MySPTestWidget(); // Simple Composite with unique string to test SP

            vp.add(t);

            PopupPanel p = new PopupPanel();

            p.setWidget(vp);

            p.center();

          }

          @Override

          public void onFailure(Throwable reason) {

            Window.alert("SP Application Failed");

          }

        });

      }

    });



Any thoughts on why the simple (and possibly the ultimate goal of MVP/GIN-CodeSplitting) is not working?


Thanks very much in advance!
-Ashton

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/6J7bM10dP1QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment