There are no official solution for now. Take a look at this post for my workaround about this problem.
How you noticed is impossible to use the fourth parameters, because ALL the script will be replaced, including the script that you didn’t include in the render partial.
Another problem is that the ids that are authomatically generated by Yii will break after an ajaxSubmission: if you have 2 links in the main view (will be named yt0, yt1) and 2 links in the subview that will be reloaded with ajax (yt2, yt3).
When you will call renderPartial on the subview the 2 links will be named yt0, yt1 (because you are not rendering the main view once again) with the obviously consequences.
The solution I propose in my post is to write in the view to renderPartial all the clientScript required by the view itself. That solve the problem of the clientscript of the subview.
For the problem of the id there are no solution right now because the ‘ytn’ id is hardcoded in CHtml and cannot be changed. You can workaround this point by giving a unuque id to ALL object in the subview (links and so on).
In my long experience in Yii, this is the only one week point of the framework, I hope that the devTeam will take in consideration to resolve it.
Thank you for your detailed response on this issue, I had read previously your post about your work around and it is currently what i am doing also, I just wasn’t sure if the way I was doing it was correct or not, thanks again!