The maxLength attribute is only valid for plain-text edit controls that do not allow paragraph breaks. Such controls correspond to editWith elements with a component attribute set to "xField" and a type attribute set to "plain" (or without a type attribute specified).
Example
The following is an example of the maxLength attribute as it is used in the editWith element: