Announcement Announcement Module
Collapse
No announcement yet.
spring rcp and hibernate validator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    At the moment, @Valid isn't supported. @NotEmpty should work.

    Comment

    Working...
    X