Saturday, January 5, 2013

Code Splitting Simple Example Still getting Thrown into Left Overs

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:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5129

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:
https://github.com/ashtonthomas/gwt-async-mvp-gin

https://github.com/ashtonthomas/gwt-async-mvp-gin/blob/master/src/io/ashton/async/client/app/Application.java
http://www.ashtonthomas.com/compile-report.zip

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?

https://github.com/ashtonthomas/gwt-async-mvp-gin

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