PDA

View Full Version : BeanModelReader and examples



siberian
27 Dec 2009, 10:45 PM
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.

sven
30 Dec 2009, 2:49 AM
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.

siberian
30 Dec 2009, 9:32 AM
I only have one type in my list, a type called 'Policy'. Its a POJO DTO I create in my service.