<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/valuelist" prefix="vlh" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<%-- Initial collection beneath section header (e.g. Associate 1) --%>
<c:forEach var="mergeRowGroupInfo" items="${sectionChildReq.children}" varStatus="status">
<c:set var="counter" value="${status.count - 1}"/>
<tr>
  <td width="29%">
    <table>
      <%-- Initial collection header --%>
      <tr>
        <c:set var="expColFieldName" scope="page"><c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_ExpColId</c:set>
        <c:set var="errorFieldName" scope="page"><c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/></c:set>
        <c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'><c:set var="imageName">Right</c:set><c:set var="altText" value="${expandableSectionCollapsed}"/></c:when><c:otherwise><c:set var="imageName">Down</c:set><c:set var="altText" value="${expandableSectionExpanded}"/></c:otherwise></c:choose>
        <th scope = "col" nowrap class="moduleLabel <c:out value='${mergeRowGroupInfo.fieldStyle}'/>">
          <fw:link href="." onclick="expandOrCollapse(${mergeRowGroupInfo.fieldName}_${counter}_Block, ${mergeRowGroupInfo.fieldName}_${counter}_Image, ${mergeRowGroupInfo.fieldName}_${counter}_ExpColId); return false">
            <html-el:img alt="${altText}" align="center" border="0" styleId="${mergeRowGroupInfo.fieldName}_${counter}_Image" src="../images/redArrow${imageName}.gif"/><fw:label property="${errorFieldName}"><bean-el:message key="${mergeRowGroupInfo.groupFieldMessageKey}"/> <c:out value='${status.count}'/></fw:label>
          </fw:link>
          <input name="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_ExpColId" id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_ExpColId" type="hidden" value="<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == null}'>true</c:when><c:otherwise><c:out value='${personMergeInfoMap.person_userSelections[expColFieldName]}'/></c:otherwise></c:choose>"/>
        </th>
      </tr>
    </table>
  </td>
  <td width="33%" class="moduleValue <c:out value='${mergeRowGroupInfo.dataStyle}'/>"><c:if test="${mergeRowGroupInfo.deprecatedInputType != null}"><input type="<c:out value='${mergeRowGroupInfo.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowGroupInfo" property="deprecatedObject"/>" id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>" value="<c:out value="${mergeRowGroupInfo.deprecatedEntityKey}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowGroupInfo.deprecatedFieldKey]}"/> <c:if test="${mergeRowGroupInfo.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowGroupInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowGroupInfo" property="deprecatedObject"/></fw:spanStyle></td>
  <td width="33%" class="moduleValue <c:out value='${mergeRowGroupInfo.dataStyle}'/>"><c:if test="${mergeRowGroupInfo.primaryInputType != null}"><input type="<c:out value='${mergeRowGroupInfo.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowGroupInfo" property="primaryObject"/>" id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>" value="<c:out value="${mergeRowGroupInfo.primaryEntityKey}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowGroupInfo.primaryFieldKey]}"/> <c:if test="${mergeRowGroupInfo.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowGroupInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowGroupInfo" property="primaryObject"/></fw:spanStyle></td>
  <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowGroupInfo.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
</tr>
<tr id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}'/>_Block" style="display:<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'>none</c:when><c:otherwise>block</c:otherwise></c:choose>">
  <td colspan="4">
    <table rules="all" class="TableDisplay" frame="void">
      <%-- Children of initial collection --%>
      <c:forEach var="mergeRowInfo" items="${mergeRowGroupInfo.children}">
        <c:choose>
        <c:when test="${mergeRowInfo.parentRow == 'true'}">
          <%-- Second collection --%>

          <%-- Second collection header row (e.g. Military Service Episodes) --%>
          <tr>
            <td width="29%">
              <table>
                <tr>
                  <c:set var="expColFieldName" scope="page"><c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}'/>_ExpColId</c:set>
                  <c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'><c:set var="imageName">Right</c:set><c:set var="altText" value="${expandableSectionCollapsed}"/></c:when><c:otherwise><c:set var="imageName">Down</c:set><c:set var="altText" value="${expandableSectionExpanded}"/></c:otherwise></c:choose>
                  <th scope = "col" nowrap class="moduleLabel <c:out value='${mergeRowInfo.fieldStyle}'/>">
                    <fw:link href="." onclick="expandOrCollapse(${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}_Block, ${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}_Image, ${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}_ExpColId); return false">
                      <html-el:img alt="${altText}" align="center" border="0" styleId="${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}_Image" src="../images/redArrow${imageName}.gif"/><fw:label property="${mergeRowInfo.fieldName}"><bean-el:message key="${mergeRowInfo.fieldMessageKey}"/></fw:label>
                    </fw:link>
                    <input name="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}'/>_ExpColId" id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}'/>_ExpColId" type="hidden" value="<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == null}'>true</c:when><c:otherwise><c:out value='${personMergeInfoMap.person_userSelections[expColFieldName]}'/></c:otherwise></c:choose>"/>
                  </th>
                </tr>
              </table>
            </td>
            <td width="33%" class="moduleValue <c:out value='${mergeRowInfo.dataStyle}'/>"><c:if test="${mergeRowInfo.deprecatedInputType != null}"><input type="<c:out value='${mergeRowInfo.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo" property="deprecatedObject"/>" id="<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowInfo.fieldName}'/>" value="<c:out value="${DEPRECATED}"/>" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo.deprecatedFieldKey]}"/> <c:if test="${mergeRowInfo.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo" property="deprecatedObject"/></fw:spanStyle></td>
            <td width="33%" class="moduleValue <c:out value='${mergeRowInfo.dataStyle}'/>"><c:if test="${mergeRowInfo.primaryInputType != null}"><input type="<c:out value='${mergeRowInfo.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo" property="primaryObject"/>" id="<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowInfo.fieldName}'/>" value="<c:out value="${PRIMARY}"/>" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo.primaryFieldKey]}"/> <c:if test="${mergeRowInfo.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo" property="primaryObject"/></fw:spanStyle></td>
            <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowInfo.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
          </tr>
          <tr id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowInfo.fieldName}'/>_Block" style="display:<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'>none</c:when><c:otherwise>block</c:otherwise></c:choose>">
            <td colspan="4">
              <table rules="all" class="TableDisplay" frame="void">
              <c:choose>
              <c:when test="${mergeRowInfo.childrenContainGroups == 'true'}">
                <%-- Second Collection beneath initial collection (e.g. Military Service Episode 1) --%>
                <c:forEach var="mergeRowGroupInfo2" items="${mergeRowInfo.children}" varStatus="status2">
                <c:set var="counter2" value="${status2.count - 1}"/>
                <tr>
                  <td width="29%">
                    <table>
                      <%-- Second collection header --%>
                      <tr>
                        <c:set var="expColFieldName" scope="page"><c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}'/>_ExpColId</c:set>
                        <c:set var="errorFieldName" scope="page"><c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}'/></c:set>
                        <c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'><c:set var="imageName">Right</c:set><c:set var="altText" value="${expandableSectionCollapsed}"/></c:when><c:otherwise><c:set var="imageName">Down</c:set><c:set var="altText" value="${expandableSectionExpanded}"/></c:otherwise></c:choose>
                        <th scope = "col" nowrap class="moduleLabel <c:out value='${mergeRowGroupInfo2.fieldStyle}'/>">
                          <fw:link href="." onclick="expandOrCollapse(${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}_Block, ${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}_Image, ${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}_ExpColId); return false">
                            <html-el:img alt="${altText}" align="center" border="0" styleId="${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}_Image" src="../images/redArrow${imageName}.gif"/><fw:label property="${errorFieldName}"><bean-el:message key="${mergeRowGroupInfo2.groupFieldMessageKey}"/> <c:out value='${status2.count}'/></fw:label>
                          </fw:link>
                          <input name="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}'/>_ExpColId" id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}'/>_ExpColId" type="hidden" value="<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == null}'>true</c:when><c:otherwise><c:out value='${personMergeInfoMap.person_userSelections[expColFieldName]}'/></c:otherwise></c:choose>"/>
                        </th>
                      </tr>
                    </table>
                  </td>
                  <td width="33%" class="moduleValue <c:out value='${mergeRowGroupInfo2.dataStyle}'/>"><c:if test="${mergeRowGroupInfo2.deprecatedInputType != null}"><input type="<c:out value='${mergeRowGroupInfo2.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowGroupInfo2" property="deprecatedObject"/>" id="<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>" value="<c:out value="${mergeRowGroupInfo2.deprecatedEntityKey}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowGroupInfo2.deprecatedFieldKey]}"/> <c:if test="${mergeRowGroupInfo2.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowGroupInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowGroupInfo2" property="deprecatedObject"/></fw:spanStyle></td>
                  <td width="33%" class="moduleValue <c:out value='${mergeRowGroupInfo2.dataStyle}'/>"><c:if test="${mergeRowGroupInfo2.primaryInputType != null}"><input type="<c:out value='${mergeRowGroupInfo2.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowGroupInfo2" property="primaryObject"/>" id="<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>" value="<c:out value="${mergeRowGroupInfo2.primaryEntityKey}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowGroupInfo2.primaryFieldKey]}"/> <c:if test="${mergeRowGroupInfo2.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowGroupInfo2.fieldName}_${counter2}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowGroupInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowGroupInfo2" property="primaryObject"/></fw:spanStyle></td>
                  <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowGroupInfo2.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
                </tr>
                <tr id="<c:out value='${mergeRowGroupInfo.fieldName}_${counter}_${mergeRowGroupInfo2.fieldName}_${counter2}'/>_Block" style="display:<c:choose><c:when test='${personMergeInfoMap.person_userSelections[expColFieldName] == false}'>none</c:when><c:otherwise>block</c:otherwise></c:choose>">
                  <td colspan="4">
                    <table rules="all" class="TableDisplay" frame="void">
                      <%-- Children of second collection --%>
                      <c:forEach var="mergeRowInfo2" items="${mergeRowGroupInfo2.children}">
                        <tr>
                          <th scope = "col" nowrap valign="top" width="29%" class="moduleValueBold <c:out value='${mergeRowInfo2.fieldStyle}'/>"><fw:label property="${mergeRowInfo2.fieldName}"><bean-el:message key="${mergeRowInfo2.fieldMessageKey}"/></fw:label></th>
                          <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo2.dataStyle}'/>"><c:if test="${mergeRowInfo2.deprecatedInputType != null}"><input type="<c:out value='${mergeRowInfo2.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo2" property="deprecatedObject"/>" id="<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowInfo2.fieldName}'/>" value="<c:out value="${DEPRECATED}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo2.deprecatedFieldKey]}"/> <c:if test="${mergeRowInfo2.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo2" property="deprecatedObject"/></fw:spanStyle></td>
                          <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo2.dataStyle}'/>"><c:if test="${mergeRowInfo2.primaryInputType != null}"><input type="<c:out value='${mergeRowInfo2.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo2" property="primaryObject"/>" id="<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowInfo2.fieldName}'/>" value="<c:out value="${PRIMARY}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo2.primaryFieldKey]}"/> <c:if test="${mergeRowInfo2.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo2" property="primaryObject"/></fw:spanStyle></td>
                          <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowInfo2.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
                        </tr>
                      </c:forEach>
                    </table>
                  </td>
                </tr>
                </c:forEach>
              </c:when>
              <c:otherwise>
                <%-- Direct children of second collection --%>
                <c:forEach var="mergeRowInfo2" items="${mergeRowInfo.children}">
                  <tr>
                    <th scope = "col" nowrap valign="top" width="29%" class="moduleValueBold <c:out value='${mergeRowInfo2.fieldStyle}'/>"><fw:label property="${mergeRowInfo2.fieldName}"><bean-el:message key="${mergeRowInfo2.fieldMessageKey}"/></fw:label></th>
                    <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo2.dataStyle}'/>"><c:if test="${mergeRowInfo2.deprecatedInputType != null}"><input type="<c:out value='${mergeRowInfo2.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo2" property="deprecatedObject"/>" id="<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowInfo2.fieldName}'/>" value="<c:out value="${DEPRECATED}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo2.deprecatedFieldKey]}"/> <c:if test="${mergeRowInfo2.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo2" property="deprecatedObject"/></fw:spanStyle></td>
                    <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo2.dataStyle}'/>"><c:if test="${mergeRowInfo2.primaryInputType != null}"><input type="<c:out value='${mergeRowInfo2.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo2" property="primaryObject"/>" id="<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowInfo2.fieldName}'/>" value="<c:out value="${PRIMARY}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo2.primaryFieldKey]}"/> <c:if test="${mergeRowInfo2.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowInfo2.fieldName}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo2" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo2" property="primaryObject"/></fw:spanStyle></td>
                    <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowInfo2.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
                  </tr>
                </c:forEach>
              </c:otherwise>
              </c:choose>
              </table>
            </td>
          </tr>
        </c:when>
        <c:otherwise>
          <%-- Non-collection child of initial collection --%>
          <tr>
            <th scope = "col" nowrap valign="top" width="29%" class="moduleValueBold <c:out value='${mergeRowInfo.fieldStyle}'/>"><fw:label property="${mergeRowInfo.fieldName}"><bean-el:message key="${mergeRowInfo.fieldMessageKey}"/></fw:label></th>
            <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo.dataStyle}'/>"><c:if test="${mergeRowInfo.deprecatedInputType != null}"><input type="<c:out value='${mergeRowInfo.deprecatedInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo" property="deprecatedObject"/>" id="<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>" name="<c:out value='${mergeRowInfo.fieldName}'/>" value="<c:out value="${DEPRECATED}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo.deprecatedFieldKey]}"/> <c:if test="${mergeRowInfo.uncheckPrimaryInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>, <c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo" property="deprecatedObject"/></fw:spanStyle></td>
            <td valign="top" width="33%" class="moduleValue <c:out value='${mergeRowInfo.dataStyle}'/>"><c:if test="${mergeRowInfo.primaryInputType != null}"><input type="<c:out value='${mergeRowInfo.primaryInputType}'/>" title="<esrcore:displayValue name="mergeRowInfo" property="primaryObject"/>" id="<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>" name="<c:out value='${mergeRowInfo.fieldName}'/>" value="<c:out value="${PRIMARY}" />" <c:out value="${personMergeInfoMap.person_userSelections[mergeRowInfo.primaryFieldKey]}"/> <c:if test="${mergeRowInfo.uncheckDeprecatedInputType == true}">onClick="uncheckOtherBox(<c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${PRIMARY}"/>, <c:out value='${mergeRowInfo.fieldName}'/>_<c:out value="${DEPRECATED}"/>); return true"</c:if>></c:if><fw:spanStyle name="mergeRowInfo" property="objectsDifferent"><esrcore:displayValue name="mergeRowInfo" property="primaryObject"/></fw:spanStyle></td>
            <td valign="top" width="5%"   class="moduleValue" style="text-align: left; padding-left: 10"><c:if test="${mergeRowInfo.objectsDifferent}"><html-el:img alt="${dataChanged}" align="center" border="0" styleId="rdImage" src="../images/data_changed.gif"/></c:if></td>
          </tr>
        </c:otherwise>
        </c:choose>
      </c:forEach>
    </table>
  </td>
</tr>
</c:forEach>
