PDA

View Full Version : GXT 2.0.1 -> 2.1.0. BeanModelTag not working for me anymore.



Vasily.R
7 Jan 2010, 1:08 PM
Hi All,

I've upgraded to 2.1.0... Now I have following error:

java.lang.AssertionError: No BeanModelFactory found for class ExamListViewBean

It seems BeanModelTag not working for me anymore. Here is defenition of ExamListViewBean:

public class ExamListViewBean extends BaseModelData implements BeanModelTag, Serializable{...}

It's extend BaseModelData as I need access to the bean's fields by property name, which is implemented in BaseModelData.

In 2.0.1 this is works fine... How to fix it for 2.1.0?

Thank you!

sven
7 Jan 2010, 1:10 PM
You cannot use both. You use BeanModelTag oder BaseModelData. If something is already a ModelData, than be BeanModelTag does nothing.

Vasily.R
7 Jan 2010, 1:18 PM
You cannot use both. ...

Ok, thx!

Vasily.R
7 Jan 2010, 1:52 PM
But, If I still need features provided by ModelData, like a map of properties, may I use second option with BeanModelMarker and keep extension from BaseModelData, or this is not recomended?

Thx!

sven
7 Jan 2010, 1:55 PM
BeanModel, which gets generated when you assign a BeanModelTag is a ModelData.

There are two solutions. Remove "exend BaseModelData" or remove" implements BeanModelTag"