Announcement

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

    validation of two dateItem

    Is there any way to create a client side validation to insure that one date field is less than or equal to another date field in the same record?

    In GWT project template, I found that a "shared" source directory, which may be used to do entry data validation. How can we do w/ smartgwt ?

    #2
    You can use a validator of type custom to do custom client-side validation based on custom Java logic.

    You can add server-side validation as either custom Java logic (see validator.serverObject) or a Velocity expression.

    If the Java logic is common across client and server and the logic is written so that it can execute in the browser via GWT, you can share it (but this case of a simple "greater than" check is too trivial to bother).

    Comment

    Working...
    X