Duplicate Id error encountered when jsp dynamic include is used.

Discussion in 'JSP' started by tamal, Apr 16, 2012.

  1. tamal

    tamal New Member

    Joined:
    Apr 16, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice