title: Loading Zii widget CjuiDatePicker through AJAX call not working
body: <p><b>Problem summary:</b> <br/>
  (i) Widget in static portion of form works fine; but<br/>
  (ii) In dynamically-generated portion, only the text field appears (clicking on it does not create calendar from which to select a date)<br/>
  <br/>
  <b>Below code shows the 'dynamic' attempt:</b></p>
  
  <p>(1) A user can click "(+) date":</p>
  
  <pre><code>    &lt;?php echo CHtml::link('(+) Date','javascript:void(0);',array('class'=&gt;'date-add'))?&gt;
  </code></pre>
  
  <p>(2) A jquery handler does the AJAX request:</p>
  
  <pre><code>    &lt;script&gt;
          $(".date-add").click(function() { $.ajax({
              success: function(html) {$(".date-list").append(html);}, type: 'get',
              url: '&lt;?php echo $this-&gt;createUrl('CreateDate')?&gt;',
              data: {index: counter++}, cache: false, dataType: 'html'
          });});
      &lt;/script&gt;
  </code></pre>
  
  <p>(3) The jquery handler triggers actionCreateDate:</p>
  
  <pre><code>    model = new Date;
      $this-&gt;renderPartial('_newDate', array(
          'model' =&gt; $model,
      ));
  </code></pre>
  
  <p>(4) And the view code is </p>
  
  <pre><code>    &lt;?php 
          $this-&gt;widget('zii.widgets.jui.CJuiDatePicker', array( 
              'name'=&gt;'Date', 'options'=&gt;array(),'htmlOptions'=&gt;array(),
          ));
      ?&gt;
  </code></pre>
  
  <p><b> How can I resolve this issue (i.e. have working widgets in dynamically-generated portion of form)? Thanks in advance!</b></p>