[ask] 2 extension in 1 form

hello … i want to ask …

I use 2 extension in a form …

datepicker:http://www.yiiframework.com/extension/emultiselect/




$this->widget('application.extensions.jui.EDatePicker',

			 	array(

			      	'name'=>'execution_date1',

			      	'attribute'=>'execution_date', // Model attribute filed which hold user input

			      	'model'=>$model,        	// Model name

			      	'language'=>'en',

			      	'mode'=>'imagebutton',

			      	'theme'=>'redmond',

			      	'value'=>date('Y-m-d'),

			      	'htmlOptions'=>array('size'=>15,

					  

					  ),

					  'options'=>array('changeYear'=>true,'changeMonth'=>true),

			      	'fontSize'=>'0.8em'

			     	)

			  	);






emultiselect:http://www.yiiframework.com/extension/jui/





$this->widget(

				'application.extensions.emultiselect.EMultiSelect',

				array('sortable'=>true, 'searchable'=>true)

					);

				echo CHtml::listBox('slot','',array(),

				array(

				'multiple'=>'multiple',

				'key'=>'id', 

				'class'=>'multiselect',

				)); }




but the datepicker does not work since I use emultiselect

because of what things like this happen?

Add a unique id to each widget.




$this->widget('application.extensions.jui.EDatePicker',

                                array(

                                'id' => 'datePicker',

                                'name'=>'execution_date1',

                                'attribute'=>'execution_date', // Model attribute filed which hold user input

                                'model'=>$model,                // Model name

                                'language'=>'en',

                                'mode'=>'imagebutton',

                                'theme'=>'redmond',

                                'value'=>date('Y-m-d'),

                                'htmlOptions'=>array('size'=>15,

                                          

                                          ),

                                          'options'=>array('changeYear'=>true,'changeMonth'=>true),

                                'fontSize'=>'0.8em'

                                )

                                );






$this->widget(

                                'application.extensions.emultiselect.EMultiSelect',

                                array('sortable'=>true, 'searchable'=>true, 'id' => 'multiSelect')

                                        );

                                echo CHtml::listBox('slot','',array(),

                                array(

                                'multiple'=>'multiple',

                                'key'=>'id', 

                                'class'=>'multiselect',

                                )); }



Matt

still can not …

datepicker still not running :(

but if I use the datepicker like this




 $ this-> widget ('application.extensions.timepicker.timepicker', array (

 'model' => $ model,

 'name' => 'execution_date',

 'select' => 'date'));



its running …

but i want to use jui <_<

My typical CJuiDatePicker looks like




            $this->widget('zii.widgets.jui.CJuiDatePicker', array(

                'name' => 'Project[expired_date]',

                'model' => $model,

                'attribute' => 'expired_date',

                // additional javascript options for the date picker plugin

                'options' => array(

                    'showAnim' => 'fold',

                    'dateFormat' => 'yy-mm-dd',

                    'changeMonth' => 'true',

                    'changeYear' => 'true',

                ),

                'htmlOptions' => array(

                ),

            ));



Matt

Maybe your extensions can’t work both check JavaScript and HTML. Analyze generated code.