Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Validator Using JAVA does not work

    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:
    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.");
    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!
    Last edited by GWTDummies; 27 May 2010, 04:34.

    #2
    Hello Isomorphic,

    any ideas?

    Comment

    Working...
    X