Hi Isomorphic,
we found an inconsistent behavior with Criterion.getOperatorId() which is part of AdvancedCriteria. After upgrade to smartgwt 5.0 it returns "null" as a string, instead of returning real null.
We create client side empty advanced criteria like:
At that moment we have operator as null.
Then we get this criteria on server side via:
and try to check if the operatorId is null:
But this condition is after upgrade false, because after transformation from client to server side getOperatorId() returns "null" not null.
The next condition is true:
Could you clarify why it was changed?
Thanks
We upgraded from smartgwt3 (3.1-p20151015) to smartgwt5 (5.0-p20160129)
we found an inconsistent behavior with Criterion.getOperatorId() which is part of AdvancedCriteria. After upgrade to smartgwt 5.0 it returns "null" as a string, instead of returning real null.
We create client side empty advanced criteria like:
Code:
AdvancedCriteria ac = new AdvancedCriteria();
Then we get this criteria on server side via:
Code:
AdvancedCriteria advancedCriteria = dsRequest.getAdvancedCriteria();
Code:
advancedCriteria.asCriterion().getOperatorId() == null
The next condition is true:
Code:
advancedCriteria.asCriterion().getOperatorId().equals("null")
Thanks
We upgraded from smartgwt3 (3.1-p20151015) to smartgwt5 (5.0-p20160129)
Comment