Boa tarde.
Estou a usar o CJUITABS para criar um form em cada tab, até tudo perfeito.
O meu problema está que tenho de fazer o submit do form em cada tab separadamente, sendo que isso também consigo fazer com o nome do botão que pressiono, mas quando faço o submit ele grava o conteudo do respectivo form e reencaminha sempre para o primeiro tab, sendo que o pretendido é depois de efectuar o submit avança-se para o tab seguinte.
Como é possivel fazer isso, o meu código do tab é o seguinte
<?php
$tabs['Previous Year - Summary']=array(
'id'=>'Summary',
'content'=>$this->renderPartial('_formPag3',array(
'items'=>$items,
'modelObj'=>$modelObj,
'comentAll'=>$comentAll,
),
true)
);
$tabs['Competences']=array(
'id'=>'Competencies',
'content'=>$this->renderPartial('_formPag2',array(
'items'=>$itemsCompet,
'modelCompet'=>$modelCompet,
'pessoais'=>$pessoais,
'comunica'=>$comunica,
'company'=>$company,
'execution'=>$execution,
'lider'=>$lider,
'lideranca'=>$lideranca,
'comentAll'=>$comentAll,
),
true)
);
$tabs['Development']=array(
'id'=>'Development',
'content'=>$this->renderPartial('_formPag5',array(
'forma'=>$forma,
'pif'=>$pif,
'dataPif'=>$dataPif,
'previous'=>$previous,
'actionsData'=>$actionsData,
'spiderPersonal'=>$spiderPersonal,
'spiderSocial'=>$spiderSocial,
'spiderTechnical'=>$spiderTechnical,
'spiderCompany'=>$spiderCompany,
'spiderExec'=>$spiderExec,
'spiderManag'=>$spiderManag,
'comentAll'=>$comentAll,
),
true)
);
$tabs['Career']=array(
'id'=>'Career',
'content'=>$this->renderPartial('_formPag1',array(
'carreira'=>$carreira,
'id_momento_av'=>$id_momento_av,
'comentAll'=>$comentAll,
),
true)
);
$tabs['Objectives']=array(
'id'=>'Objectives',
'content'=>$this->renderPartial('_formPag4',array(
'obj'=>$modelObj,
'dataProvider'=>$dataProvider,
'comentAll'=>$comentAll,
),
true)
);
$tabs['Send']=array(
'id'=>'Enviar',
'content'=>$this->renderPartial('_formPag8',array(
),
true)
);
$this->widget('zii.widgets.jui.CJuiTabs',array(
'tabs'=>$tabs,
'options'=>array(
'collapsible'=>false,
),
));
?>