Hi, bob
 Thank you for your response.

  The HibernateFrom API has wrote "This form will automatically apply the given 
objects   property required validation constraints to the form fields."
  And the given example is "form.add(new TextField("firstName");"
  The required flag don't set explicitly.
  Maybe change " form.add(new TextField("firstName", true);" to 
 " form.add(new TextField("firstName");" , will it work?
 Now I'm in company, I can't test.

 Best regards.
 Wateray from Tokyo.

-----Original Message-----
From: Bob Schellink [mailto:[email protected]] 
Sent: Monday, October 05, 2009 10:12 AM
To: [email protected]
Subject: Re: HibernateForm

Hi,

The idea behind HibernateForm is to automate some common functionality
such as validation. In this case HibernateForm will automatically set
the field readonly value based on whether the database column allow a
null value or not. I guess HibernateForm is overriding the value you set
explicitly.

Perhaps HibernateForm should only set the Field readonly flag if the
value is false?

kind regards

bob

[email protected] wrote:
> Hello List
>  When I use HibernateForm, I find something is not correct.
>  Eg.  TextField  name = new TextField("name", "name", true);
>  The required flag doesn't work.
>  And form.isValid() don't validate.
>  Is this a bug?
>  
>  
> 

Reply via email to