Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    smartGWT 2.4 ListGrid setAutoFetchData(true) issue

    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

    #2
    Can you post the details of the exception and what you see in the Smart GWT dev console?

    Comment


      #3
      Hi Sanjiv,

      Thanks for getting back to me so quick.

      I ran through the steps again (e.g. copied over the new jars, updated the environment variables, delete the project in the war directory, clear the browser cache, etc..) and rebuilt the project and everything smartGWT-related seems fine.

      Just one issue with GWTP's dispatch mechanism to sort out :-)

      Thanks again.

      Cheers
      Rob

      Comment

      Working...
      X