Latest java connector


Could you tell me where I can get the latest java connector. Your web site has version 1.5 dated back in 2012.

I have a newer version that is dated 2013 (I think was supplied here in the forum) but I don’t seem to have the corresponding connector.js for it.

For example, if I try to use the 1.5 version the GridConnector does not have the method GridConnector.filter() which is inherited from BaseConnector. Whereas the newer version does.

Can you please clarify if there is a later verison and where I can get this from.


We plan to officially release the next verson of connectors in next two weeks.
The version from the forum is the beta version, with dev. fixes and updates, which was not released yet ( all functionality from it will be available in the next official version )

OK that’s great. can you confirm whether the following problem has been also fixed.

When using server side filtering along with connector.is_select_mode() an IndexOutOfBounds error occurs.

It appears that the config object is not initialised before this method is called. This can be tseted using something like:

Server Side:

GridConnector c = new GridConnector(con); c.dynamic_loading(100); if (c.is_select_mode()) c.render_sql("select * from employee", "id", "name,dob,address"); else { c.render_table("employee", "id", "name,dob,address"); }

Client Side:

mygrid.setHeader("Name,DOB,Address"); mygrid.attachHeader("#connector_text_filter,#connector_select_filter,#connector_text_filter"); mygrid.setInitWidths("100,90,200"); mygrid.setColAlign("left,left,left"); mygrid.setColTypes("ro,ro,ro"); mygrid.setColSorting("str,date,str"); mygrid.enableSmartRendering(true, 100); mygrid.init(); mygrid.load("/test");

If the is_select_mode is removed and I call render_sql it works as expected.

Also, another problem.

When using server side filtering on a grid using attachHeader - if the data has an &(ampersand) character it breaks with an error of malformed xml. If I remove the filtering it works.

Fixed version of connector attached, it must resolve issue with is_select_mode call for all use-cases. (280 KB)

Hi Stanislav,

That’s fixed the problem!

Any chance you could look at the second issue? :wink:

I can’t reconstruct this issue locally, can you provide the exact server side response which causes the problem ( can be catched by using firebug or chrome dev. tools )

Hi Stanislav,

Sorry should have been clearer. The problem is specifically when you use a #connector_select_filter

If for example my data contains the “&” character it tries to build a list as below as part of the response which gives the error:

</coll_options><coll_options for='17'><item value='Frankfurt'></item>
<item value='London'></item>
<item value='Luxembourg'></item>
<item value='Hamburg'></item>
<item value='Frankfurt & Hamburg'></item>
<item value='Stuttgart'></item>
<item value='Duesseldorf'></item>
<item value='Copenhagen'></item>
<item value='Paris & Luxembourg'></item>
<item value='Vienna'></item>
<item value='Vienna & Luxembourg'></item>

Further, if you use a client side #select_filter it half works but the drop down list displays as:

Frankfurt & Hamburg

Which means if you select this it returns nothing!

I hope this is clearer!!

Thanks for the info.
I was able to fix the issue, please try to use the attached jar file ( it includes all latest fixes as well ) (281 KB)

Hi Stanislav,

I tried the new jar file but it still doesn’t work. looking at the changes in this file it doesn’t seem like the fix is in there.

The problem (I think) is in the fill_collections method of when it builds the xml for the lists.

Sorry, it seems I have missed few places where fix need to be applied.
Please try to update the connector.jar one more time. (281 KB)

Many thanks Stanislav! - I can confirm it’s now fixed :smiley: