CForm highlight required fields

If you build a form using CHtml you can use CHtml::activeLabelEx() to show a * behind the labels of the required fields. Is there a parameter or something we can add to the element definition of a CForm to achieve the same thing automatically?

If your model’s property has a “required” validator in the rules() method, then “*” will be shown automatically.

Also, you can set this property explicitly: