title: Updating CListView maintaining event handlers
body: <p>I am using Yii framework, and make an extensive use of CListViews. However i am continously facing a problem which i cant solve:</p>
  
  <p>This is my CListView</p>
  
  <pre><code>            $this-&gt;widget('zii.widgets.CListView', array(
              'viewData'=&gt;array('sent'=&gt;$sent),
              'dataProvider'=&gt;$dp,
              'pager' =&gt; array(
                              'prevPageLabel'=&gt;'&lt; Prev.',
                              'nextPageLabel'=&gt;'Next&gt;',
                              'header'=&gt;'Pagina: ',
                              'pageSize'=&gt;5,),
              'template'=&gt;"{items}\n{pager}", 
              'itemView'=&gt;'_messageView',
              'emptyText'=&gt;'Empty inbox',
              'enablePagination'=&gt;true,
              'afterAjaxUpdate' =&gt; 'js:function(id) {alert("after");}',
              'id'=&gt;'listMessages',
          ));
  </code></pre>
  
  <p>And i have a JS method which updates the list the following way:</p>
  
  <pre><code>function sent_view(){
  $.fn.yiiListView.update('listMessages',
          {data:'type=sent', url:'view?sort=timestamp&amp;ajax=listMessages'});
  }
  </code></pre>
  
  <p>After this function is called, all events that were tied up to each item of the CListView is no longer there. I tried adding the next piece of code so as to attach the handlers again, however it doesn't work. It doesn't even get to display an alert if i add it right after the $.fn.yiiListView.update line of code.</p>
  
  <pre><code>$(".individualMessage").mouseover(function(){
      $(this).css('cursor','pointer');
      $(this).css("background",'url(/../images/messages/background.png)');
  });
  </code></pre>
  
  <p>Has someone encountered a similar problem? thank you!</p>