Results 1 to 3 of 3

Thread: BeanModelReader and examples

  1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    49
    Vote Rating
    0
      0  

    Default 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
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Vote Rating
    131
      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
      0  

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •