Required (attribute of property)

From JRapid

(Redirected from Required)
Jump to: navigation, search

required is an attribute of property.



The required attribute is used to ensure that the value of a property has a value when a form is submitted.

The restriction is imposed at client side through JavaScript and at server side by setting the corresponding column of the database table to not null.


   name = NAME
   label = LABEL
   required = "required"


 <entity name="User" label="User>
       <property name="firstName" required="required" label="First name" />
       <property name="lastName" required="required" label="Last name" /> 
       <property name="email" label="Email" /> 

See also

Personal tools