Can't Get Two Widgets To Both Work On Form

I have a form with two widgets: CJuiAutoComplete and CJuiDatePicker. Either widget works fine alone on the form, but when I have them both the CJuiDatePicker starts acting like CJuiAutoComplete instead of the date picker. It doesn’t matter which order I have them on the form; I get the same behavior.

Any ideas what I need to change?

Here’s the AutoComplete:


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

	'model' => $model,

	'attribute' => 'street_name',

	'name' => 'street_name',

	'value' => '',

	'source' => CController::createUrl('/streetAddress/autocomplete'),

	'options' => array(

	    'minLength' => 2,

	    'select' => "js:function(event, ui) {



	    'change' => "js:function(event, ui) {

	        if (!ui.item) {






And here’s the Date picker:


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




	// additional javascript options for the date picker plugin









I must have had the syntax wrong on the autocomplete. I just simplified the autocomplete and both widgets are working fine now.