Re: GWT 2.1 hellomvp using GIN

2010-10-24 Thread moejo
Hi Amir,

Yes, your absolutely right - forgot to call setFactory!  Now
everything is working stunningly.  I've put together a sample bit of
code using the Contact Details code I mentioned previously and it can
be downloaded at:

http://www.bright-creations.com/wp-content/uploads/2010/10/ContactsClientFactoryGin3-export.zip

If you guys have any comments about the code, please let me know.
Thanks for all your advice, you guys have been seriously helpful.

Cheers

Moe

On Oct 24, 10:16 am, Amir Kashani amirkash...@gmail.com wrote:
 Moe,

 Are you using PlaceHistoryMapperWithFactory? If so, my best guess is
 that you're forgetting to call setFactory in your onModuleLoad():

   AppPlaceHistoryMapper historyMapper =
 GWT.create(AppPlaceHistoryMapper.class);
   historyMapper.setFactory(ginjector.getAppPlaceFactory());

 If that's not it, take a look at the generated code to see if you can
 figure out what exactly is null on that line (-gen compiler option).

 HTH.

 - Amir

 On Oct 23, 2:54 pm, moejo mahamad.el.tan...@gmail.com wrote:

  Hi All,

  I'm working on getting an example together and I am having issues
  setting up the injectors for the code you've suggested above (Amir,
  david, Aodhagán).  So far, I've setup everything as you've suggested
  for the AppActivityMapper, AppPlaceFactory, AppPlaceHistoryMapper,
  Places and ActivityPlace.  However, I am obviously missing something
  in the GIN module itself (apologize in advance, just started to use
  GIN).

  The pages are changing successfully, but no history token changes are
  made.

  The error i get is:

  Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
  exceptions caught, see full set in UmbrellaException#getCauses
      at
  com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
  214)

  Caused by: java.lang.NullPointerException: null
      at
  com.google.gwt.sample.contacts.client.mvp.AppPlaceHistoryMapperImpl.getPref 
  ixAndToken(AppPlaceHistoryMapperImpl.java:
  24)
      at
  com.google.gwt.place.impl.AbstractPlaceHistoryMapper.getToken(AbstractPlace 
  HistoryMapper.java:
  66)
      at
  com.google.gwt.place.shared.PlaceHistoryHandler.tokenForPlace(PlaceHistoryH 
  andler.java:
  156)
      at com.google.gwt.place.shared.PlaceHistoryHandler.access
  $1(PlaceHistoryHandler.java:151)
      at com.google.gwt.place.shared.PlaceHistoryHandler
  $1.onPlaceChange(PlaceHistoryHandler.java:103)
      at
  com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java 
  :
  57)
      at
  com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java 
  :
  1)
      at
  com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
  204)
      at
  com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
  103)
      at
  com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
  120)
      at com.google.gwt.sample.contacts.client.activity.ContactActivity
  $1.onClick(ContactActivity.java:94)

  My NewContactPlace is as follows:

  public class NewContactPlace extends
  ActivityPlaceEditContactActivity {

      @Inject
      public NewContactPlace(EditContactActivity activity) {
          super(activity);
          GWT.log(NewContactPlace.ActivityProvider:  + activity);
      }

      private String placeName;

      public void setPlaceName(String token) {
          this.placeName = token;
      }

      public String getPlaceName() {
          return placeName;
      }

          @Prefix(new)
          public static class Tokenizer implements
  PlaceTokenizerNewContactPlace {

                  // Since the place is injectable, we'll let Gin do the 
  construction.
                  private final ProviderNewContactPlace placeProvider;

                  @Inject
          public Tokenizer(ProviderNewContactPlace placeProvider) {
              this.placeProvider = placeProvider;
              GWT.log(NewContactPlace.Tokenizer.PlaceProvider:  +
  placeProvider);
          }

                  @Override
                  public String getToken(NewContactPlace place) {
                          return place.getPlaceName();
                  }

                  @Override
                  public NewContactPlace getPlace(String token) {
                          NewContactPlace place = placeProvider.get();
                          place.setPlaceName(token);
                          return place;
              // If place requires any more work, do it here.
                  }

          }

  }

  However, (and I'm pretty sure here's the problem, is my GINModule:

  @Override
          protected void configure() {

                  // bind the EventBus
                  
  bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);

  bind(PlaceController.class).to(InjectablePlaceController.class).in(Singleto 
  n.class);

                  // bind the mapper

  bind(ActivityMapper.class).to(AppActivityMapper.class).in(Singleton.class

Re: GWT 2.1 hellomvp using GIN

2010-10-24 Thread moejo
By the way, something I realised that although we can't map a 1-Many
relationship between a Place and an Activity, you can in fact map
multiple places to the same activity and differentiate between the
place with multiple init() methods in the activity.

On Oct 24, 1:56 pm, moejo mahamad.el.tan...@gmail.com wrote:
 Hi Amir,

 Yes, your absolutely right - forgot to call setFactory!  Now
 everything is working stunningly.  I've put together a sample bit of
 code using the Contact Details code I mentioned previously and it can
 be downloaded at:

 http://www.bright-creations.com/wp-content/uploads/2010/10/ContactsCl...

 If you guys have any comments about the code, please let me know.
 Thanks for all your advice, you guys have been seriously helpful.

 Cheers

 Moe

 On Oct 24, 10:16 am, Amir Kashani amirkash...@gmail.com wrote:

  Moe,

  Are you using PlaceHistoryMapperWithFactory? If so, my best guess is
  that you're forgetting to call setFactory in your onModuleLoad():

    AppPlaceHistoryMapper historyMapper =
  GWT.create(AppPlaceHistoryMapper.class);
    historyMapper.setFactory(ginjector.getAppPlaceFactory());

  If that's not it, take a look at the generated code to see if you can
  figure out what exactly is null on that line (-gen compiler option).

  HTH.

  - Amir

  On Oct 23, 2:54 pm, moejo mahamad.el.tan...@gmail.com wrote:

   Hi All,

   I'm working on getting an example together and I am having issues
   setting up the injectors for the code you've suggested above (Amir,
   david, Aodhagán).  So far, I've setup everything as you've suggested
   for the AppActivityMapper, AppPlaceFactory, AppPlaceHistoryMapper,
   Places and ActivityPlace.  However, I am obviously missing something
   in the GIN module itself (apologize in advance, just started to use
   GIN).

   The pages are changing successfully, but no history token changes are
   made.

   The error i get is:

   Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
   exceptions caught, see full set in UmbrellaException#getCauses
       at
   com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
   214)

   Caused by: java.lang.NullPointerException: null
       at
   com.google.gwt.sample.contacts.client.mvp.AppPlaceHistoryMapperImpl.getPref
ixAndToken(AppPlaceHistoryMapperImpl.java:
   24)
       at
   com.google.gwt.place.impl.AbstractPlaceHistoryMapper.getToken(AbstractPlace
HistoryMapper.java:
   66)
       at
   com.google.gwt.place.shared.PlaceHistoryHandler.tokenForPlace(PlaceHistoryH
andler.java:
   156)
       at com.google.gwt.place.shared.PlaceHistoryHandler.access
   $1(PlaceHistoryHandler.java:151)
       at com.google.gwt.place.shared.PlaceHistoryHandler
   $1.onPlaceChange(PlaceHistoryHandler.java:103)
       at
   com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java
:
   57)
       at
   com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java
:
   1)
       at
   com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
   204)
       at
   com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
   103)
       at
   com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
   120)
       at com.google.gwt.sample.contacts.client.activity.ContactActivity
   $1.onClick(ContactActivity.java:94)

   My NewContactPlace is as follows:

   public class NewContactPlace extends
   ActivityPlaceEditContactActivity {

       @Inject
       public NewContactPlace(EditContactActivity activity) {
           super(activity);
           GWT.log(NewContactPlace.ActivityProvider:  + activity);
       }

       private String placeName;

       public void setPlaceName(String token) {
           this.placeName = token;
       }

       public String getPlaceName() {
           return placeName;
       }

           @Prefix(new)
           public static class Tokenizer implements
   PlaceTokenizerNewContactPlace {

                   // Since the place is injectable, we'll let Gin do the 
   construction.
                   private final ProviderNewContactPlace placeProvider;

                   @Inject
           public Tokenizer(ProviderNewContactPlace placeProvider) {
               this.placeProvider = placeProvider;
               GWT.log(NewContactPlace.Tokenizer.PlaceProvider:  +
   placeProvider);
           }

                   @Override
                   public String getToken(NewContactPlace place) {
                           return place.getPlaceName();
                   }

                   @Override
                   public NewContactPlace getPlace(String token) {
                           NewContactPlace place = placeProvider.get();
                           place.setPlaceName(token);
                           return place;
               // If place requires any more work, do it here.
                   }

           }

   }

   However, (and I'm pretty sure here's

Re: What's the plan for GWT 2.1 RC2 and Production release

2010-10-24 Thread moejo
Hi David - thanks for that feedback - we've gone ahead and assumed
what you've recommended and are going from there.

Cheers

Moe

On Oct 18, 9:20 pm, David Chandler (Google) drfibona...@google.com
wrote:
 Hi Moejo,

 Thomas is correct about the tagging, as usual :-)

 We normally tag the release first, then build and test from the tag.
 TheGWT2.1release is being coordinated with several teams (core SDK,
 GPE, and VMWare for the Spring Roo-related pieces), and when all of
 them are ready, we'll announce the release on theGWTblog and related
 pieces will be made available for download.

 As for the Javadocs pertaining to Activity, Places, RequestFactory,
 and related classes, most of the experimental API warnings have now
 been removed in trunk. There are no changes to these APIs expected
 from2.1RC to the2.1release, so the RC is a good basis on which to
 begin building your app.

 Thanks for your interest inGWT2.1!

 David Chandler
 Developer Programs Engineer,GWT

 On Oct 18, 7:53 am, moejo mahamad.el.tan...@gmail.com wrote:

  Thomas - you're an absolute star!

  I am very happy to hear that Google's almost there with theGWT2.1
  version - can't wait to get it up and running on our new project.

  Cheers again,

  On Oct 17, 10:20 pm, Thomas Broyer t.bro...@gmail.com wrote:

   On 17 oct, 20:44, moejo mahamad.el.tan...@gmail.com wrote:

Hi,

This is more a question towards theGWTteam.

We are currently kicking off a new project and since we're hugeGWT
fans, we're jumping straight intoGWT2.1RC1 and love it.  (We've
been usingGWTsince version 1.3 so we're always excited about the
upgrades!)

However, since it's still at RC1, I'd love to know the timeline for
RC2 and the released version?

   Fun to ask this 2 hours after they tag the2.1.0 release 
   ;-)http://code.google.com/p/google-web-toolkit/source/detail?r=9112
   (yeah, a sunday, I'm as surprised as you probably are)

Most importantly, I've found lots of red javadoc comments such as:

span style=color:redExperimental API: This class is still under
rapid
 * development, and is very likely to be deleted. Use it at your own
risk.
 * /span

Are these old javadoc comments or are classes such as Place, Activity,
and other plumbing classes really going to be replaced with completely
different code?

   Old 
   Javadoc:http://code.google.com/p/google-web-toolkit/issues/detail?id=5380http...

We'd like to avoid having to refactor huge portions of code in 2
months time, so was hoping you could raise a little bit of light on
what the roadmap is timeline wise and what changes you are already
looking at.

   RC1 was explicitly announced as an API 
   freeze:http://googlewebtoolkit.blogspot.com/2010/10/gwt-21-rc1-is-now-availa...
   if you're looking to start a project withGWT2.1, you can feel
   confident that your team won't have to refactor code because we've
   switched out interfaces between now and the final release.

-- 
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-tool...@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 2.1 hellomvp using GIN

2010-10-23 Thread moejo
Hi All,

I'm working on getting an example together and I am having issues
setting up the injectors for the code you've suggested above (Amir,
david, Aodhagán).  So far, I've setup everything as you've suggested
for the AppActivityMapper, AppPlaceFactory, AppPlaceHistoryMapper,
Places and ActivityPlace.  However, I am obviously missing something
in the GIN module itself (apologize in advance, just started to use
GIN).

The pages are changing successfully, but no history token changes are
made.

The error i get is:

Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
exceptions caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
214)

Caused by: java.lang.NullPointerException: null
at
com.google.gwt.sample.contacts.client.mvp.AppPlaceHistoryMapperImpl.getPrefixAndToken(AppPlaceHistoryMapperImpl.java:
24)
at
com.google.gwt.place.impl.AbstractPlaceHistoryMapper.getToken(AbstractPlaceHistoryMapper.java:
66)
at
com.google.gwt.place.shared.PlaceHistoryHandler.tokenForPlace(PlaceHistoryHandler.java:
156)
at com.google.gwt.place.shared.PlaceHistoryHandler.access
$1(PlaceHistoryHandler.java:151)
at com.google.gwt.place.shared.PlaceHistoryHandler
$1.onPlaceChange(PlaceHistoryHandler.java:103)
at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
57)
at
com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
1)
at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
204)
at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
at
com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
120)
at com.google.gwt.sample.contacts.client.activity.ContactActivity
$1.onClick(ContactActivity.java:94)

My NewContactPlace is as follows:

public class NewContactPlace extends
ActivityPlaceEditContactActivity {

@Inject
public NewContactPlace(EditContactActivity activity) {
super(activity);
GWT.log(NewContactPlace.ActivityProvider:  + activity);
}

private String placeName;

public void setPlaceName(String token) {
this.placeName = token;
}

public String getPlaceName() {
return placeName;
}

@Prefix(new)
public static class Tokenizer implements
PlaceTokenizerNewContactPlace {

// Since the place is injectable, we'll let Gin do the 
construction.
private final ProviderNewContactPlace placeProvider;

@Inject
public Tokenizer(ProviderNewContactPlace placeProvider) {
this.placeProvider = placeProvider;
GWT.log(NewContactPlace.Tokenizer.PlaceProvider:  +
placeProvider);
}

@Override
public String getToken(NewContactPlace place) {
return place.getPlaceName();
}

@Override
public NewContactPlace getPlace(String token) {
NewContactPlace place = placeProvider.get();
place.setPlaceName(token);
return place;
// If place requires any more work, do it here.
}

}
}

However, (and I'm pretty sure here's the problem, is my GINModule:

@Override
protected void configure() {

// bind the EventBus

bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);

bind(PlaceController.class).to(InjectablePlaceController.class).in(Singleton.class);

// bind the mapper

bind(ActivityMapper.class).to(AppActivityMapper.class).in(Singleton.class);

// bind the views
bind(IContactsViewDisplay.class).to(ContactsView.class);
bind(IEditDisplay.class).to(EditContactView.class);

}

I've not used providers before, so I'm guessing I need to define a
provider?  or is there somewhere else I might be missing.

Any help would be much appreciated.

Cheers

Moe

On Oct 22, 11:58 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 22 oct, 19:50, David Chandler drfibona...@google.com wrote:

  Hi Richard,

  We're still working on an official story for how best to use runAsync
  with Activities and Places. In the mean time, feedback on your
  experiences is welcome. GWT's AsyncProxy class or the AsyncProvider in
  GIN trunk look promising as ways to wrap Activity creation with a
  runAsync() call.

  If view creation is initiated only through the corresponding Activity,
  then wrapping Activity creation with runAsync() will defer loading of
  the view code also, and you'll be able to see this in the SOYC report.

  References:
 http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html
 http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

 Just so it doesn't get forgotten, see 
 

Re: GWT 2.1 hellomvp using GIN

2010-10-23 Thread moejo
Sorry, feel like I might be missing some info to you.  I've basically
got two items:

3 Places
- ContactPlace
- EditContactPlace
- NewContactPlace

which map to 2 activities:
- ContactActivity
- EditContactActivity

the contact activity is initally loading fine, but there is a click to
add a new contact which is supposed to load the NewContactPlace.

I'm passing the provider to the ContactActivity as so:

@Inject
public ContactActivity(EventBus eventBus, IContactsViewDisplay
display,
PlaceController 
placeController,
ContactsServiceAsync 
rpcService,

ProviderNewContactPlace newGoToPlaceProvider,

ProviderEditContactPlace editGoToPlaceProvider) {
this.rpcService = rpcService;
this.eventBus = eventBus;
this.display = display;
this.placeController = placeController;

this.newGoToPlaceProvider = newGoToPlaceProvider;
this.editGoToPlaceProvider = editGoToPlaceProvider;
}

And forwarding to the newcontactplace here:

ContactActivity.this.placeController.goTo(newGoToPlaceProvider.get());

It's the above line (that although it kicks off and moves to the New
Contact Page, it's giving a null pointer exception and not updating
the URL.

My AppPlaceFactory is exactly as Amir mentioned above.

Would really appreciate some help on this.

Cheers

Moe

On Oct 23, 11:54 pm, moejo mahamad.el.tan...@gmail.com wrote:
 Hi All,

 I'm working on getting an example together and I am having issues
 setting up the injectors for the code you've suggested above (Amir,
 david, Aodhagán).  So far, I've setup everything as you've suggested
 for the AppActivityMapper, AppPlaceFactory, AppPlaceHistoryMapper,
 Places and ActivityPlace.  However, I am obviously missing something
 in the GIN module itself (apologize in advance, just started to use
 GIN).

 The pages are changing successfully, but no history token changes are
 made.

 The error i get is:

 Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
 exceptions caught, see full set in UmbrellaException#getCauses
     at
 com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
 214)

 Caused by: java.lang.NullPointerException: null
     at
 com.google.gwt.sample.contacts.client.mvp.AppPlaceHistoryMapperImpl.getPrefixAndToken(AppPlaceHistoryMapperImpl.java:
 24)
     at
 com.google.gwt.place.impl.AbstractPlaceHistoryMapper.getToken(AbstractPlaceHistoryMapper.java:
 66)
     at
 com.google.gwt.place.shared.PlaceHistoryHandler.tokenForPlace(PlaceHistoryHandler.java:
 156)
     at com.google.gwt.place.shared.PlaceHistoryHandler.access
 $1(PlaceHistoryHandler.java:151)
     at com.google.gwt.place.shared.PlaceHistoryHandler
 $1.onPlaceChange(PlaceHistoryHandler.java:103)
     at
 com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
 57)
     at
 com.google.gwt.place.shared.PlaceChangeEvent.dispatch(PlaceChangeEvent.java:
 1)
     at
 com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
 204)
     at
 com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
 103)
     at
 com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
 120)
     at com.google.gwt.sample.contacts.client.activity.ContactActivity
 $1.onClick(ContactActivity.java:94)

 My NewContactPlace is as follows:

 public class NewContactPlace extends
 ActivityPlaceEditContactActivity {

     @Inject
     public NewContactPlace(EditContactActivity activity) {
         super(activity);
         GWT.log(NewContactPlace.ActivityProvider:  + activity);
     }

     private String placeName;

     public void setPlaceName(String token) {
         this.placeName = token;
     }

     public String getPlaceName() {
         return placeName;
     }

         @Prefix(new)
         public static class Tokenizer implements
 PlaceTokenizerNewContactPlace {

                 // Since the place is injectable, we'll let Gin do the 
 construction.
                 private final ProviderNewContactPlace placeProvider;

                 @Inject
         public Tokenizer(ProviderNewContactPlace placeProvider) {
             this.placeProvider = placeProvider;
             GWT.log(NewContactPlace.Tokenizer.PlaceProvider:  +
 placeProvider);
         }

                 @Override
                 public String getToken(NewContactPlace place) {
                         return place.getPlaceName();
                 }

                 @Override
                 public NewContactPlace getPlace(String token) {
                         NewContactPlace place = placeProvider.get();
                         place.setPlaceName(token);
                         return place;
             // If place requires any more work, do it here

Re: GWT 2.1 hellomvp using GIN

2010-10-20 Thread moejo
I don't know if this will help, but i recreated the Contact Details
app which is under the Large scale application development article
at http://code.google.com/webtoolkit/articles/mvp-architecture.html
using just a clientFactory to allow a more thorough working example
using GWT 2.1 Activities and Places to play with.  You can find it
under my blog at:

http://www.bright-creations.com/blog/gwt-2-1-mvp-client-factory-example/

It's still not using GIN, but my task for tonight (and it's already 11
p.m. so better get my backside moving) is that I'm in the process of
seeing how to inject references using GIN.  Í'll let you know the
outcome.

In the meantime, if this helps anyone with playing with GIN and
activities, and you manage to get it done quicker than I can, then let
me know and I'd love to link to it.  Otherwise, i'll let you know the
outcomes asap.

Moe


On Oct 20, 12:31 pm, Fernando Barbat fbar...@gmail.com wrote:
 I had the exactly same doubt. And I thought about it, but couldn't
 find out how you can do that mapping with GIN.
 In fact, Roo's generated projects don't use a GIN-based mapping
 although they use GIN in other parts.

 So I'm interested to know the answer to this question too. :P

 On 20 oct, 07:42, Sebastian Beigel sebast...@beigel.de wrote:

  Hi,

  I'm looking at 2.1 (RC1) for the first time right now and I try to
  refactor the hellomvp sample to use GIN.

  Unfortunately, I have some problems with the places - activities
  mapping. The doc says A better way to implement the chain of nested
  ifs would be with a GIN module. and the code is commented Map each
  Place to its corresponding Activity. This would be a great use for
  GIN..

  I agree, but I don't really know how to do this mapping :) Has anyone
  refactored this code to use GIN?

  Thank you,
  Sebastian

-- 
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-tool...@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: What's the plan for GWT 2.1 RC2 and Production release

2010-10-18 Thread moejo
Thomas - you're an absolute star!

I am very happy to hear that Google's almost there with the GWT 2.1
version - can't wait to get it up and running on our new project.

Cheers again,

On Oct 17, 10:20 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 17 oct, 20:44, moejo mahamad.el.tan...@gmail.com wrote:

  Hi,

  This is more a question towards the GWT team.

  We are currently kicking off a new project and since we're huge GWT
  fans, we're jumping straight into GWT 2.1 RC1 and love it.  (We've
  been using GWT since version 1.3 so we're always excited about the
  upgrades!)

  However, since it's still at RC1, I'd love to know the timeline for
  RC2 and the released version?

 Fun to ask this 2 hours after they tag the 2.1.0 release 
 ;-)http://code.google.com/p/google-web-toolkit/source/detail?r=9112
 (yeah, a sunday, I'm as surprised as you probably are)

  Most importantly, I've found lots of red javadoc comments such as:

  span style=color:redExperimental API: This class is still under
  rapid
   * development, and is very likely to be deleted. Use it at your own
  risk.
   * /span

  Are these old javadoc comments or are classes such as Place, Activity,
  and other plumbing classes really going to be replaced with completely
  different code?

 Old 
 Javadoc:http://code.google.com/p/google-web-toolkit/issues/detail?id=5380http://code.google.com/p/google-web-toolkit/source/detail?r=9033

  We'd like to avoid having to refactor huge portions of code in 2
  months time, so was hoping you could raise a little bit of light on
  what the roadmap is timeline wise and what changes you are already
  looking at.

 RC1 was explicitly announced as an API 
 freeze:http://googlewebtoolkit.blogspot.com/2010/10/gwt-21-rc1-is-now-availa...
 if you're looking to start a project with GWT 2.1, you can feel
 confident that your team won't have to refactor code because we've
 switched out interfaces between now and the final release.

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



What's the plan for GWT 2.1 RC2 and Production release

2010-10-17 Thread moejo
Hi,

This is more a question towards the GWT team.

We are currently kicking off a new project and since we're huge GWT
fans, we're jumping straight into GWT 2.1 RC1 and love it.  (We've
been using GWT since version 1.3 so we're always excited about the
upgrades!)

However, since it's still at RC1, I'd love to know the timeline for
RC2 and the released version?

Most importantly, I've found lots of red javadoc comments such as:

span style=color:redExperimental API: This class is still under
rapid
 * development, and is very likely to be deleted. Use it at your own
risk.
 * /span

Are these old javadoc comments or are classes such as Place, Activity,
and other plumbing classes really going to be replaced with completely
different code?

We'd like to avoid having to refactor huge portions of code in 2
months time, so was hoping you could raise a little bit of light on
what the roadmap is timeline wise and what changes you are already
looking at.

Thanks in advance,

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



Cache file is 3 MB!!

2009-12-27 Thread moejo
Hi,

My team has been developing an application in GWT and we are
constantly having issues with the size of the GWT cache.html file.
Our current file size is at 3.3 MB which is huge!

Compared to some of the file sizes I've seen in the forums (50kb,
500kb, etc), I'm wondering if maybe there is something we've missed
completely which has resulted in bad performance.  Can anyone assist
in this?

I've already read the forums and i know we can reduce the size of the
file to around 500kb using gunzip, however, I feel this should be used
as a final fix.  What I'm trying to find is the source of the huge
size in the first place so as to avoid it in future.

Has anyone had a huge file like this before, any suggestions?

FYI - we are using GWT 1.7, compiling for all browsers and are using
SmartGWT (solely for the calendar component).  I've removed SmartGWT
to test and retried it, we still ended up with the same file size.

Any help would be 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 google-web-tool...@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: Cache file is 3 MB!!

2009-12-27 Thread moejo
Hi Joe

Thanks for the info, I'll see what effect upgrading to GWT 2.0 has - I
hadn't heard of the SYOC feature, so that definitely might come in
handy.  Only thing is though, we're very close to go-live so I'm a
little hesitant to upgrade at this time, in case there turns out to be
compatibility issues among other things.

Yeah I've got the flag for obfuscated on for the compiler (even though
i know it's by default).


On Dec 27, 3:21 pm, Qian Qiao qian.q...@gmail.com wrote:
 On Sun, Dec 27, 2009 at 21:13, moejo mahamad.el.tan...@gmail.com wrote:
  Hi,

  My team has been developing an application in GWT and we are
  constantly having issues with the size of the GWT cache.html file.
  Our current file size is at 3.3 MB which is huge!

  Compared to some of the file sizes I've seen in the forums (50kb,
  500kb, etc), I'm wondering if maybe there is something we've missed
  completely which has resulted in bad performance.  Can anyone assist
  in this?

  I've already read the forums and i know we can reduce the size of the
  file to around 500kb using gunzip, however, I feel this should be used
  as a final fix.  What I'm trying to find is the source of the huge
  size in the first place so as to avoid it in future.

  Has anyone had a huge file like this before, any suggestions?

  FYI - we are using GWT 1.7, compiling for all browsers and are using
  SmartGWT (solely for the calendar component).  I've removed SmartGWT
  to test and retried it, we still ended up with the same file size.

  Any help would be appreciated.

 You might consider to upgrade to GWT 2.0 to take advantage of the
 guided code split feature, it might not reduce the size of you code,
 in fact it'll probably make the total size larger, but the user won't
 have to download your application all at once, so they'll enjoy a much
 faster start up time. Also, with GWT2.0's SYOC feature, you'll see
 exact what makes up of your 3.3MB, so you can work on them
 accordingly.

 Also, this might be trivial, but I thought I might also ask, are you
 using obfuscated mode?

 -- Joe

 --
 Two things that are infinite, the universe and my stupidity, and I'm
 not sure about the universe.

--

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