IGNORE: NOT A BUG! (issue was in the custom datasource implementation, not part of SmartGWT)
SmartGWT Pro 3.1p-2012-11-29 / GWT:2.4, OSX 10.6.8
Tried with both DevMode and without.
Firefox and Safari (browser may be irrelevant)
Here is the output of the payload:
As soon as filterData() is executed, it goes into an infinite loop calling the server-side data source.
If I replace filterData(searchFilterCriteria) with fetchData(searchFilterCriteria), works as expected - no loop but I need a substring/case insensitive match so fetch isn't a work-around for me.
If I remove String[] from the criteria, it also works as expected - no loop.
SmartGWT Pro 3.1p-2012-11-29 / GWT:2.4, OSX 10.6.8
Tried with both DevMode and without.
Firefox and Safari (browser may be irrelevant)
Code:
Criteria searchFilterCriteria = new Criteria(); searchFilterCriteria.addCriteria("HIDDEN", false); searchFilterCriteria.addCriteria("STATUS", statusFilter.toArray(new String[0])); //array of statuses: ACTIVE, HIDDEN, etc. searchFilterCriteria.addCriteria("NAME", searchText.getValueAsString()); listGrid.filterData(searchFilterCriteria);
Code:
=== 2012-11-29 17:38:46,346 [0-12] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{ HIDDEN:false, STATUS:[ "ACTIVE" ], NAME:"beta" }, operationConfig:{ dataSource:"product_authdef_DS_HibernateORM", operationType:"fetch", textMatchStyle:"substring" }, startRow:0, endRow:75, componentId:"Deposit_product_authdef_DS_HibernateORM_Search_ListGrid", appID:"builtinApplication", operation:"product_authdef_DS_HibernateORM_fetch", oldValues:{ HIDDEN:false, STATUS:[ "ACTIVE" ], NAME:"beta" } }
As soon as filterData() is executed, it goes into an infinite loop calling the server-side data source.
If I replace filterData(searchFilterCriteria) with fetchData(searchFilterCriteria), works as expected - no loop but I need a substring/case insensitive match so fetch isn't a work-around for me.
If I remove String[] from the criteria, it also works as expected - no loop.
Comment