Projects‎ > ‎

Attribute Properties

Attributes, in Definitions, need to support the declaration of an arbitrary number of Properties. The Properties are initially implemented to support client-side dynamic interfaces. Display Properties:

Name Description
value.max The maximum length of the value
value.min The minimum length of the value
widget.displayname Friendly name to describe the Attribute, usually used to label the attribute
widget.type Recommended UI component to display the Attribute value
widget.width The width of the UI component
<Attribute id="firstname" required="true" >
      <Property name="widget.displayname" value="First Name" />
      <Property name="widget.type" value="textfield" />
      <Property name="widget.width" value="32" />
      <Property name="value.min" value="2" />
      <Property name="value.max" value="30" />