h:datatable 问题在这里我有一个带有“isApprove”字段的表..如何显示它的值。对或错?我想根据真假值显示“不正确”图像的“正确”。怎么做?任何 1 可以帮助我吗?
<f:facet name="header">
<h:outputText value="Company List" />
</f:facet>
<p:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText value="#{company.appCompanyName}"></h:outputText>
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="isApproved"/>
</f:facet>
<h:outputText value="#{company.isAppIsApproved}"></h:outputText>
</p:column>
</p:dataTable>
</h:form>
And ManagedBean code is
...
public Boolean getIsApproved() {
return isApproved;
}
public void setIsApproved(Boolean isApproved) {
this.isApproved = isApproved;
}
public CompanyListManagedBean() {
}
public Collection<Tblcompany> GetCompanyList() {
return showAllCompany();
}
private java.util.List<webservice.Tblcompany> showAllCompany() {
webservice.AdminWebService port = service.getAdminWebServicePort();
return port.showAllCompany();
}
...