I'm looking to create a JSF application in which there are multiple xhtml pages displayed in different regions of the browser. I could do this with iframes but they add extra memory and accessing objects across iframes is not that trivial.
I am considering an approach in which I load different xhtml pages within the main page using ajax. The problem is that there will be many elements within the main page that will have the same ids, since the ids are unique only within their respective view roots.
I know 1 solution would be to implement some custom client side logic that handles these duplicate ids, but it would be better to just not have duplicate ids at all.
What can i do to solve the problem?
A side question: Is there a framework that handles such a requirement better, i.e. having multiple pages displayed within the same browser window?