pkt1583 / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Store.setBaseParams() does not override previouse values #458

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create new Store object.
2. Set store.setBaseParams(new UrlParam[] {new UrlParam("param1","val1")});
3. Load store
4. Set store.setBaseParams(new UrlParam[] {});
5. Reload store

What is the expected output? What do you see instead?
I expect "param1" UrlParam not to be passed through to server on step 5,
but it does go through with "val1" value.

What version of the product are you using? On what operating system?
GWT 1.5.3, GWT-Ext 2.0.5, Ext 2.0.2

Please provide any additional information below.
Workaround: change step 4 to this:
4. Set store.setBaseParams(new UrlParam[] {new UrlParam("param1","")});
and treat empty value on server side properly

Original issue reported on code.google.com by basil...@gmail.com on 19 Nov 2008 at 12:04