Hi folks,
http://www.smartclient.com/smartgwt/...Validator.html
Where did the method setServerCondition go?! In Version smartgwt-2.0 I still had it!!
See here: http://www.google.com/codesearch/p?h...a=N&cd=1&ct=rc
I tried to create a validator using java:
When I double click on the field, the validator will not activated.
Now I have realised that I cannot find the method setServerCondition() in the class com.smartgwt.client.widgets.form.validator.Validator. I think I´m using here the wrong library.
HELP!
http://www.smartclient.com/smartgwt/...Validator.html
Where did the method setServerCondition go?! In Version smartgwt-2.0 I still had it!!
See here: http://www.google.com/codesearch/p?h...a=N&cd=1&ct=rc
I tried to create a validator using java:
Code:
ListGridField technicalfieldcreatedField = new ListGridField("technicalfieldcreated"); Validator validator = new Validator(); validator.setType(ValidatorType.SERVERCUSTOM); validator.setAttribute("serverCondition", "#if($value.getTime() > $record.technicalfieldlastupdate.getTime()) true #else false #end"); validator.setErrorMessage("Created time must be before update.");
Now I have realised that I cannot find the method setServerCondition() in the class com.smartgwt.client.widgets.form.validator.Validator. I think I´m using here the wrong library.
HELP!
Comment