What is the impact of *.cache.html size

2011-11-15 Thread News Club
Hi:

We have relatively a large GWT project. Our compiled code size (i.e
*.cache.html) used to be 4.5 MB.

I have recently included a couple of gwt open source libraries. After that,

a) The compiler permutations gone from 5 to 59.
b) The compile time went from 3 mins to 18 mins.
c) The total size of *.cache.html files went up from 4.5 MB to 40MB.

I like the benefits of this open source library. But, I would like to know
what is the impact of *.cache.html file size during runtime?

Thanks

Nara

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



DataGrid GWT 2.4 RC1

2011-08-12 Thread News Club
Hi:

I want to try the DataGrid in 2.4 RC1 release. I took the CellTable example
and slightly modified it to use DataGrid. I could compile fine but nothing
gets displayed in the browser and no exceptions. I don't know why it is not
working.

Appreciate your help. Thanks.

NR

public class DataGridExample implements EntryPoint {
  private static class Contact {
private final String address;
private final Date birthday;
private final String name;

public Contact(String name, Date birthday, String address) {
  this.name = name;
  this.birthday = birthday;
  this.address = address;
}
  }

  private static final ListContact CONTACTS = Arrays.asList(
  new Contact(John, new Date(80, 4, 12), 123 Fourth Avenue),
  new Contact(Joe, new Date(85, 2, 22), 22 Lance Ln),
  new Contact(George, new Date(46, 6, 6), 1600 Pennsylvania
Avenue));

  public void onModuleLoad() {
DataGridContact table = new DataGridContact();
table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);

TextColumnContact nameColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact object) {
return object.name;
  }
};
table.addColumn(nameColumn, Name);

DateCell dateCell = new DateCell();
ColumnContact, Date dateColumn = new ColumnContact, Date(dateCell) {
  @Override
  public Date getValue(Contact object) {
return object.birthday;
  }
};
table.addColumn(dateColumn, Birthday);

TextColumnContact addressColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact object) {
return object.address;
  }
};
table.addColumn(addressColumn, Address);

final SingleSelectionModelContact selectionModel = new
SingleSelectionModelContact();
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
  public void onSelectionChange(SelectionChangeEvent event) {
Contact selected = selectionModel.getSelectedObject();
if (selected != null) {
  Window.alert(You selected:  + selected.name);
}
  }
});

table.setRowCount(CONTACTS.size(), true);

table.setRowData(0, CONTACTS);

RootPanel.get().add(table);
  }
}

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