Results 1 to 2 of 2

Thread: spring rcp and hibernate validator

  1. #1
    Join Date
    May 2010
    Posts
    8

    Default spring rcp and hibernate validator

    hello
    how to integrate spring rcp and hibernate validator for form?, I try the following
    i have a AbstractForm

    Code:
    public class CustomerForm extends AbstractForm {
    
        CustomerForm(Customer customer) {
        super(customer);
        setId("customer");
            
        HibernateRulesValidator r = new
                      HibernateRulesValidator(getFormModel(), Customer.class);
        getFormModel().setValidator(r);
    }
    ...
        }
    and this is object domain
    Code:
    public class Customer {
        
        @NotEmpty
        private String firstName; 
        
        @Valid
        private Address address;
        ....
    }
    any idea that does not work?, specifically the attribute address.

    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    Oudenaarde
    Posts
    294

    Default

    At the moment, @Valid isn't supported. @NotEmpty should work.
    MSN: PM me please
    Skype: doclo_lieven

    Spring Rich Client Project Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •