I am trying to render the contents of a column depending on the contents of another column. The code snippet below displays the 2nd column (all of the cells) as it's like the test condition is similar to "1 == 1". Now the 2nd code snippet (check for true or false) does not work, nothing shows up in the 2nd column's cells. Any hints as to the problem in the <c:if test=...> tag? thx.
<h:column> <f:facet name="header">Security Level Approved?</f:facet> <c:if test="#{myRow[1].icomsAccountApproved == myRow[1].icomsAccountApproved}"> <h:outputText value="#{myRow[1].icomsAccountApproved}"/> <h:selectOneRadio id="securityLevelApprovedRB" value="#{myRow[1].securityLevelApproved}" onclick="processNote(this, #{myAuditList.getRowIndex()}, 'secLevelApproved');checkForSubmit(#{myAuditList.getRowIndex()})" style="visibility:visible"> <f:selectItems value="#{securityAuditAction.securityAuditRadioButtons}" /> </h:selectOneRadio> <h:graphicImage id="securityLevelGraphic" value="/img/icon_edit.gif" onclick="editNote(#{myAuditList.getRowIndex()}, 'secLevelApproved');" style="visibility:visible"/> </c:if> </h:column>
<h:column> <f:facet name="header">Security Level Approved?</f:facet> <c:if test="#{myRow[1].icomsAccountApproved == false || myRow[1].icomsAccountApproved == true}"> <h:outputText value="#{myRow[1].icomsAccountApproved}"/> <h:selectOneRadio id="securityLevelApprovedRB" value="#{myRow[1].securityLevelApproved}" onclick="processNote(this, #{myAuditList.getRowIndex()}, 'secLevelApproved');checkForSubmit(#{myAuditList.getRowIndex()})" style="visibility:visible"> <f:selectItems value="#{securityAuditAction.securityAuditRadioButtons}" /> </h:selectOneRadio> <h:graphicImage id="securityLevelGraphic" value="/img/icon_edit.gif" onclick="editNote(#{myAuditList.getRowIndex()}, 'secLevelApproved');" style="visibility:visible"/> </c:if> </h:column>