CForm and AJAX validation

I have the following form definition:




<?php

return array(

	'title' => Yii::t('user', 'Edit profile'),	

	'attributes' => array(

		'enctype' => 'application/form-data',

	),	

	'showErrorSummary' => true,

	'activeForm' => array(

        'class' => 'CActiveForm',

        'enableAjaxValidation' => true,

	'enableClientValidation' => true,

        'id' => 'profile-form',

	),

	'elements' => array(...)



After the page is rendered, there is no JavaScript for the validation, and of course the validation is not working (while according to the documentation it should).

What am I doing wrong?

'enableAjaxValidation'   AND    'enableClientValidation'  cannot both be true.