Forum /
Ext GWT Community Forums (2.x) /
Ext GWT: Discussion /
BeanModelReader and examples
BeanModelReader and examples
I just spent about 3 days fighting to get a BeanModelReader, an RPCProxy, a Loader and a ListStore working together to get my Grid to render.
Finally got it working on accident, all it took was:
reader.setFactoryForEachBean(true);
Voila, poof it works.
None of the examples (that I saw) have this line in them.
Why did I need it and the examples did not? My beans are very simple and implement Serializable and BeanModelTag.
I guess your list contains different types. That is why you need to set it to true so that for each type a factory gets created. Else only the first item gets checked and only one factory gets craeted.
I only have one type in my list, a type called 'Policy'. Its a POJO DTO I create in my service.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us