Bug: I want to set a Criteria that is a Long ID value. However, there is no method Criteria.addCriteria(String,Long).
Expected: addCriteria should support all basic types.
Workaround:
I recall that we've discussed this before. The Long support is patchy in SmartGWT (perhaps because there is no Long in JS, but even so, there is in Java and GWT - and my code)
Expected: addCriteria should support all basic types.
Workaround:
Code:
Criteria criteria = new Criteria(); JavaScriptObject jso = criteria.getJsObj(); JSOHelper.setAttribute(jso, fieldName, value.longValue());