0 Replies Latest reply on May 31, 2012 2:49 PM by thorin escudo de roble

    duplicate Id for a component when rendered view

    thorin escudo de roble Newbie


      Hello,

       

      I have this code:

       

      <ui:fragment rendered="#{not templateSelector.specialTheme}">

             <ui:include src="myView1.xhtml"/>

      </ui:fragment>

      <ui:fragment rendered="#{templateSelector.specialTheme}">

                <ui:include src="myView2.xhtml"/>

      </ui:fragment>

       

       

      myView1 contains JSF and HTML elements with the same ID as myView2 but I only want to include one of the two.

       

       

      How I can avoid this error without changing myView1 and myView2?

       

      thanks