Cjuidate Picker Does Not Display In A Layout

I have a small view which renders cjuidatepicker widget.


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

                'flat'=>FALSE,

            //  'model' => $model,

                'attribute' => 'start_date',

        //  'value' => $model->start_date,

                'name'=>'dateSelect',

            'options' => array(

                'showButtonPanel' => true,

                'changeYear' => true,

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

                ),

            ));?>

while this renders nicely without using a layout, but when I put this view in my project layout, the datepicker refuses to show up. I have no ideas where to look for this, all the css and js are loading similarly in layout and without layout. Any help would be greatly appreciated. Thanks

PS: I looked at the difference in generated page source and found that the div - <div id="ui-datepicker-div" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>

is not created from the layout.