Announcement

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

    ClassCastException on tab close click event

    Hello,

    Upgraded from SmartGWT EE 2011-01-25 to SC_SNAPSHOT-2011-03-01 and now I get a ClassCastException here:

    I have a TabSet and only add tabs from my own class MyTabItem which extends class Tab.
    In the tabset onCloseClick I cast event.getTab() to my own class since I don't expect any other Tab in the tabset. This does not work anymore.

    The funny thing is that the exception mentions Tab:
    Code:
    java.lang.ClassCastException: com.smartgwt.client.widgets.tab.Tab cannot be cast to zzz.MyTabItem
    while the event.getTab().getJsObj() mentions ImgTab, which is just the tab title component, right?
    Code:
    ImgTab{dragAppearance: "none",
    defaultWidth: 80,
    overflow: "visible",
    skinImgDir: "images/Tab/bottom/",
    ID: "isc_MyTabItem_1",
    canClose: true,
    ...

    #2
    This should now be resolved - please try the next nightly build!

    Regards
    Isomorphic Software

    Comment


      #3
      Thanks!
      Checked and is OK with build of March 10th 2011.

      Comment

      Working...
      X