1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    49
    Vote Rating
    0
    siberian is on a distinguished road

      0  

    Default 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.

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Dec 2009
    Posts
    49
    Vote Rating
    0
    siberian is on a distinguished road

      0  

    Default


    I only have one type in my list, a type called 'Policy'. Its a POJO DTO I create in my service.

Thread Participants: 1