Cjuiautocomplet Inside Cgridview

Hello guys,

I’m trying to insert a cjuiautocomplet widget inside a cgridview. I don’t want to use it as filter, i want to use it as value text field with the autocomplete option to select a category , and then save the checked lines. My code is:




$this->widget('zii.widgets.grid.CGridView', array(

    'id'=>'grid-view-id',

    'template'=>'{summary}{pager}{items}{summary}{pager}',

	'filter' => $model,

    'dataProvider'=>$model->hasMeta()->hasStock("216")->search(),

    'columns' => array(

        array (

            'header'=>'html',

            'id'=>'grid-id',

            'name' => 'remote_id_charisma',

            'class'=>'CCheckBoxColumn',

            'selectableRows' => '50',

        ),

        array(

            'header'=>'cat',

            'type'=>'raw',

            'value'=>$this->widget('zii.widgets.jui.CJuiAutoComplete', array(

                    'model'=>$model_gen,

                    'attribute'=>'id'),

                    true),

        ),

... other columns code



The error that i get is:

Parse error: syntax error, unexpected ‘<’ in C:\wamp\www\infokiosk\yii\framework\base\CComponent.php(612) : eval()'d code on line 1

Thanks in advance for your help :)