Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Duplicate Id error encountered when jsp dynamic include is used. (http://www.go4expert.com/forums/duplicate-id-error-encountered-jsp-t28203/)

tamal 16Apr2012 19:01

Duplicate Id error encountered when jsp dynamic include is used.
 
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


All times are GMT +5.5. The time now is 15:29.