@Ekstazi, consider following case: model is called `Blog_Post` and attribute is called `author_id`. In this case `CHtml::activeId()` would return `Blog_Post_author_id`. Don't think there is reliable way to extract model name from such string on client side.

We can compare each element of the `summaryModels` property with beginning of each attribute name, but again, there can be name clashes. Example:

`errorSummary` contains two elements: `Recipe_Photo` and `Recipe`.
Attributes to be displayed in error summary: `Recipe_author_id`, `Recipe_title`.
Attributes not to be displayed in error summary: `Recipe_Photo_author_id`, `Recipe_Photo_title`.

In this example comparison of `Recipe` string i described above would match all four strings.

I'd prefer to make passed JSON a bit redundant, but it'll be very reliable and unambiguous.