You can specify a property editor class to use with a property, using the editor-class attribute. For example, the following tag associates a special property editor with the password property:

<property name="password" data-type="string" required="true"
  editor-class="atg.beans.PasswordPropertyEditor"/>

A property editor can be used to validate a property value. Note, however, that a property editor doesn’t have access to the repository item, only the property. Therefore, you can’t use a property editor to make comparisons with other properties.

You can also limit a property’s values to a list of valid choices using an enumerated property. See the Enumerated Properties section.

 
loading table of contents...