Announcement

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

    Server validator ValueManager

    Hi,

    I use a server side validator for a dynamic forms which are combined by a ValueManager.

    Whyle validation in
    Code:
    public boolean condition(Object value, Validator validator, String fieldName, Map record, DataSource ds) throws Exception {
    the data in record is incomplete. The record contains values from a current dynamic form and not a value manager.

    Basically I need to test a users's password if it was used in history but I never receive id field. This field is marked as hidden in datasource.

    Cheers,
    Zdary

    #2
    The Record contains only submitted values. For security reasons, if there are other values involved in validation, you should fetch them from the database to prevent them being spoofed by the client.

    Comment


      #3
      That doesn't make sense.

      How can I fetch values form a database when I don't have a field with primaryKey...?

      If you don't want to provide the whole edited record you should at least provide a primary key of that record.

      best regards,
      Zdary

      Comment

      Working...
      X