Threaded View
-
8 Mar 2012 2:25 PM #1
ComboBox doQuery method seems not working with Remote Loader
ComboBox doQuery method seems not working with Remote Loader
Hi,
I found that the method doQuery(String query, boolean force) for the ComboBox in gxt 3.0 is not taking in count the query string when the ComboBox has a Loader and so the ComboBoxCell query mode is QueryMode.REMOTE.
Reading the code I found this at the doQuery method of the ComboBoxCell :
And below that the method getParams(String query) of the same class:Code:if (force || query.length() >= minChars) { if (!useQueryCache || !query.equals(lastQuery)) { lastQuery = query; if (mode == QueryMode.LOCAL) { ..... ..... }else{ expand(context, parent, updater, value); @SuppressWarnings("unchecked") PagingLoader<PagingLoadConfig, PagingLoadResult<?>> l = (PagingLoader<PagingLoadConfig, PagingLoadResult<?>>) loader; l.load(getParams(query)); }
It seems the query string was not taking in count.Code:protected PagingLoadConfig getParams(String query) { PagingLoadConfig config = null; if (loader.isReuseLoadConfig()) { config = (PagingLoadConfig) loader.getLastLoadConfig(); } else { config = new PagingLoadConfigBean(); } config.setLimit(pageSize); config.setOffset(0); // config.set("query", query); return config; }
waiting for your comments.
Regards
Daniel
You found a bug! We've classified it as
EXTGWT-2468
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote