-
5 Oct 2009 4:08 PM #1
[2.0.3] ClassCastException selectionChanged ComboBox with BeanModel
[2.0.3] ClassCastException selectionChanged ComboBox with BeanModel
I get a ClassCastException when i try to get the selectedItem from ComboBox, the combobox is loaded with a BeanModel, but it appears that the combo return a diferent class with underscores in the package name, like mi_package_name_MiClass
I uploaded the complete source code (netbeans project) in this URL:
www.preparatorianos.com/GXTBugs.rar
And you can see the error running, here:
www.preparatorianos.com/GXTBugsby Cetin@
-
5 Oct 2009 10:49 PM #2
THe issue is in that code. When directly using BaseModelData, you cannot implement BeanModelTag. Moving this to the help forum.
-
6 Oct 2009 7:51 AM #3
BaseModelData with BeanModelTag
by Cetin@
-
6 Oct 2009 7:53 AM #4
You dont need to do that as baseModelData is already a ModelData. Just do
Code:public class DataBaseProperty extends BaseModelData { }
-
6 Oct 2009 9:12 AM #5
-
6 Oct 2009 9:15 AM #6
You also need to remove the reader as it is not required anymore. I suggest to setup a brakepoint in the app the actually see why nothing happens. I guess the loader fires a loadexception event because an exception occured somewhere.
-
6 Oct 2009 9:28 AM #7


Reply With Quote
