I have a jsf 1.2 app that has the following code:
<c:forEach items="#{test.customerList}" var="itm">
<h:panelGroup layout="block">
<h:panelGroup layout="block" style="float:left;">
<h:outputText value="#{itm.customerName}"/>
</h:panelGroup>
<h:panelGroup layout="block" style="float:right;">
<c:forEach items="#{itm.addressTypeList}" var="adrssType">
<h:graphicImage id="addressTypeIcon" url="/images/services/16x16#{adrssType.contactaddresstypeicon}" alt="#{adrssType.contactaddresstypedesc}" title="#{adrssType.contactaddresstypedesc}" style="margin-top:4px;margin-left:5px;" rendered="#{adrssType.contactaddresstypeid lt 6}"/>
</c:forEach>
</h:panelGroup>
</h:panelGroup>
</c:forEach>
I get a "javax.servlet.ServletException: duplicate Id for a component " exception on the second time I do a search for customers. I've narrowed the problem down to the line that starts with:
<h:graphicImage id="addressTypeIcon"
If I remove this line, I don't get the exception, but I also don't get the images I want to display. What would be causing this?