<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:c="http://java.sun.com/jstl/core"
>
顶部引入标签已配
<rich:extendedDataTable》内var 为listEmp
<rich:column sortable="true" label="职称" width="10%" >
<f:facet name="header">
<h:outputText value="职称" />
</f:facet>
<div style="text-align: center;">
<c:choose>
<c:when test="${lstEmp.employee_Type=='6'||lstEmp.employee_Type=='0'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS013"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='1'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS098"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='2'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS099"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='4'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS100"/>
</c:when>
<c:otherwise>
<h:outputText value='其他'/>
</c:otherwise>
</c:choose>
</div>
</rich:column>
求解问题出在哪。试过c;if 同样的问题,所以刚换成了c:when
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:c="http://java.sun.com/jstl/core"
>
顶部引入标签已配
<rich:extendedDataTable》内var 为listEmp
<rich:column sortable="true" label="职称" width="10%" >
<f:facet name="header">
<h:outputText value="职称" />
</f:facet>
<div style="text-align: center;">
<c:choose>
<c:when test="${lstEmp.employee_Type=='6'||lstEmp.employee_Type=='0'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS013"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='1'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS098"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='2'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS099"/>
</c:when>
<c:when test="${lstEmp.employee_Type=='4'}">
<h:outputText value="#{lstEmp.professional}" collection="SYS100"/>
</c:when>
<c:otherwise>
<h:outputText value='其他'/>
</c:otherwise>
</c:choose>
</div>
</rich:column>
求解问题出在哪。试过c;if 同样的问题,所以刚换成了c:when