I am currently using a jsf application which is rendering each time it goes to an other page. I am supposed to make the application like, the parent jsp will remain static and only the child pages will be included dynamically based on the selection of pages. I am using

Code:
  <h:panelGroup id="bodyPanel" > 	<jsp:include page="${sessionScope.includePage}" flush="true"/> </h:panelGroup>
for this, and reRendering the bodyPanel each time according to the value in the session. The problem it is creating is, whenever the next page I am moving to contains some conflicting Ids with the current page, it is throwing up "Duplicate Id found" exception.


I can't make the Ids unique as we use almost all the Ids as same for all the pages.


Please suggest something for this problem