Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    48
    Vote Rating
    0
    Webflash is on a distinguished road

      0  

    Default [CLOSED] [2.0 M1] Filter field not filter DataList with DataListBinder

    [CLOSED] [2.0 M1] Filter field not filter DataList with DataListBinder


    DataList not filtered
    PHP Code:
    [left]public class Catalog implements BeanModelTag
    {
    private static final 
    long serialVersionUID 1L;
    private 
    String name;
    public 
    String getName() {
    return 
    name;
    }
    public 
    void setName(String name) {
    this.name name;
    }[/
    left]

    PHP Code:
    [left]ContentPanel catalogPanel = new ContentPanel(new FitLayout());
    RpcProxy<List<Catalog>> proxy = new RpcProxy<List<Catalog>>() {
    @
    Override
    public void load(Object loadConfigAsyncCallback<List<Catalog>> callback) {
    List<
    Catalog> list = new ArrayList<Catalog>();
    for (
    int i 010i++) {
    Catalog catalog = new Catalog();
    catalog.setName(" Catalog name ");
    list.
    add(catalog);
    }
    callback.onSuccess(list);
    }
    };
    BeanModelReader reader = new BeanModelReader();
    catalogLoader = new BaseListLoader<ListLoadResult<BeanModel>>(proxyreader);
    ListStore<BeanModelstore = new ListStore<BeanModel>(catalogLoader);

    DataList catalogViewList = new DataList();
    catalogViewList.setFlatStyle(true);
    catalogBinder = new DataListBinder<BeanModel>(catalogViewListstore);
    catalogBinder.setDisplayProperty("name");
    catalogPanel.add(catalogViewList);
    StoreFilterField<BeanModelfilter = new StoreFilterField<BeanModel>() {
    @
    Override
    protected boolean doSelect(Store<BeanModelstoreBeanModel parentBeanModel recordString property,
    String filter) {
    String name record.get("name");
    name name.toLowerCase();
    if (
    name.startsWith(filter.toLowerCase())) {
    return 
    true;
    }
    return 
    false;
    }
    };
    filter.bind(store);
    ToolBar toolBar = new ToolBar();
    toolBar.add(filter);[/left]
    catalogPanel.setTopComponent(toolBar);
    Viewport viewport = new Viewport();
    viewport.setLayout(new FitLayout());
    viewport.add(catalogPanel);
    RootPanel.get().add(viewport); 

  2. #2
    Ext User
    Join Date
    Jul 2007
    Posts
    48
    Vote Rating
    0
    Webflash is on a distinguished road

      0  

    Default


    Sorry My mistake my Category model extend suoer clase which overide equel method wich check id for equel , I forgot setId in model when generete test data

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar