Hi,
When trying to migrate from: GWT 2.0.4 and smartGWT 2.2 to: GWT 2.1.1 and smartGWT 2.4.
I have noticed that any calls to setAutoFetchData(true) in a subclassed ListGrid now results in an exception being thrown (e.g. when fetchData() is eventually called).
For example:
public class NavigationPaneSectionListGrid extends ListGrid {
...
public NavigationPaneSectionListGrid(DataSource dataSource) {
super();
Log.debug("NavigationPaneSectionListGrid");
// initialise the Icon field
ListGridField appIconField = new ListGridField(ICON, ICON_DISPLAY_NAME, ICON_FIELD_WIDTH);
appIconField.setImageSize(16);
appIconField.setAlign(Alignment.RIGHT);
appIconField.setType(ListGridFieldType.IMAGE);
appIconField.setImageURLPrefix(URL_PREFIX);
appIconField.setImageURLSuffix(URL_SUFFIX);
appIconField.setCanEdit(false);
// initialise the Name field
ListGridField appNameField = new ListGridField(NAME, NAME_DISPLAY_NAME);
// initialise the List Grid
this.setFields(new ListGridField[] {appIconField, appNameField});
this.setBaseStyle("crm-NavigationPaneGridCell");
this.setWidth100();
this.setHeight100();
this.setShowAllRecords(true);
this.setShowHeader(false);
this.setAutoFetchData(true);
this.setDataSource(dataSource);
}
In the 2.4 release notes it mentions that there has been some changes made to ListGrid.
N.B. The same problem occurs if you call fetchData() directly. I am using Firefox 3.6.13 and Chrome 8.0.552.224.
I backed out the changes and everything seems fine.
I'll run through the migration steps again (e.g. delete the project in the war directory and clear the browser cache, etc.) and see how I go.
Cheers
Rob
When trying to migrate from: GWT 2.0.4 and smartGWT 2.2 to: GWT 2.1.1 and smartGWT 2.4.
I have noticed that any calls to setAutoFetchData(true) in a subclassed ListGrid now results in an exception being thrown (e.g. when fetchData() is eventually called).
For example:
public class NavigationPaneSectionListGrid extends ListGrid {
...
public NavigationPaneSectionListGrid(DataSource dataSource) {
super();
Log.debug("NavigationPaneSectionListGrid");
// initialise the Icon field
ListGridField appIconField = new ListGridField(ICON, ICON_DISPLAY_NAME, ICON_FIELD_WIDTH);
appIconField.setImageSize(16);
appIconField.setAlign(Alignment.RIGHT);
appIconField.setType(ListGridFieldType.IMAGE);
appIconField.setImageURLPrefix(URL_PREFIX);
appIconField.setImageURLSuffix(URL_SUFFIX);
appIconField.setCanEdit(false);
// initialise the Name field
ListGridField appNameField = new ListGridField(NAME, NAME_DISPLAY_NAME);
// initialise the List Grid
this.setFields(new ListGridField[] {appIconField, appNameField});
this.setBaseStyle("crm-NavigationPaneGridCell");
this.setWidth100();
this.setHeight100();
this.setShowAllRecords(true);
this.setShowHeader(false);
this.setAutoFetchData(true);
this.setDataSource(dataSource);
}
In the 2.4 release notes it mentions that there has been some changes made to ListGrid.
N.B. The same problem occurs if you call fetchData() directly. I am using Firefox 3.6.13 and Chrome 8.0.552.224.
I backed out the changes and everything seems fine.
I'll run through the migration steps again (e.g. delete the project in the war directory and clear the browser cache, etc.) and see how I go.
Cheers
Rob
Comment