Cache and widget ids

Hi, I have an issue using cache fragment that not works correctly

I have a no-cache menu and a clistview that uses fragment cache, so

The first time everything works fine, incuding ajax pagination

When I refresh the page and click on pagination (for example second page) the content of clistview replace the menu!

After Of debugging and seek in framework code, I found that the CWidget.php set the same ids both for CListView and CMenu ‘yw0’. (At least I thought)

The reason is that the cache fragment ‘set’ the clistview with the first id (before caching) and the CMenu get the ‘yw0’ because it is the first no-cached widget on my page. so there are two same id…

Is it a common problem or something I’m doing wrong ?

I could use custom id both of two widgets but I would like to get you opinions!

Thanks

auto generated ids depend on widget rendering order (as you already noticed). If that is not OK for you (and apparently it is) - you must provide custom IDs for your widgets…