SmartClient Version: v10.0p_2015-06-10/PowerEdition Deployment (built 2015-06-10)
Browser Version : IE 11.0.9600.17843
I am passing "Integer" in the criteria object from Client and in the DMI class while getting its converted to Long.
Client Code:
Criteria lCriteria = new Criteria();
lCriteria.addCriteria("testId", 25);
lGrid.fetchData(lCriteria);
Server code (DMI class - fetch()):
public DSResponse fetch(DSRequest dsRequest) throws Exception {
Integer testId = (Integer) dsRequest.getCriteriaValue("testId");
The below line of code is throwing class cast exception Long cannot cast to Integer.
Please suggest I am doing anything wrong or issue in the Smartgwt with my current build?
Browser Version : IE 11.0.9600.17843
I am passing "Integer" in the criteria object from Client and in the DMI class while getting its converted to Long.
Client Code:
Criteria lCriteria = new Criteria();
lCriteria.addCriteria("testId", 25);
lGrid.fetchData(lCriteria);
Server code (DMI class - fetch()):
public DSResponse fetch(DSRequest dsRequest) throws Exception {
Integer testId = (Integer) dsRequest.getCriteriaValue("testId");
The below line of code is throwing class cast exception Long cannot cast to Integer.
Please suggest I am doing anything wrong or issue in the Smartgwt with my current build?