Nested Forms Ajax Validation

Hi Every body !!

i have nested forms like the following

[indent]return array(

‘activeForm’ => array(

‘class’ => ‘CActiveForm’,

‘enableAjaxValidation’ => true,

‘enableClientValidation’ => false,

‘clientOptions’ => array(

‘validateOnSubmit’=>true,

‘validateOnChange’=>false,

‘validateOnType’=>false,

),

‘id’ => ‘lead-form’,

),

‘elements’=>array(

‘contact’=>array(

‘type’=>‘form’,

‘elements’=>array(

‘first_name’=>array(

‘type’=>‘text’,

)

),

),

‘lead’=>array(

‘type’=>‘form’,

‘elements’=>array(

‘primary_skills’=>array(

‘type’=>‘textarea’,

),

),

),

),

‘buttons’=>array(

‘save-lead’=>array(

‘type’=>‘submit’,

‘label’=>‘Create’,

),

)

);

[/indent]

my view page is

[indent] echo $form->renderBegin();

echo $form[‘lead’];

echo $form->buttons[‘save-lead’];

echo $form->renderEnd();

[/indent]

it works fine for ajax validation.

but when i render the form two times on same view page then only the first one is ajax validated but not the 2nd one…

my 2nd scenario is like this

[indent] echo $form->renderBegin();

echo $form[‘lead’];

echo $form->buttons[‘save-lead’];

echo $form->renderEnd();

echo $form->renderBegin();

echo $form[‘contact’];

echo $form[‘lead’];

echo $form->buttons[‘save-lead’];

echo $form->renderEnd();

[/indent]

so in this case 2nd render() is not ajax validated…

anyone can help plzzzz ??????