我有两个数据表,一个是嵌套花药。代码如下:
<h:dataTable value="#{allUserBean.userList}" var="pmUsers">
<h:column headerClass="tableHeader column8Header">
<f:facet name="header">
<h:commandLink actionListener="#{allUser.sortByEmpNo}" immediate="true">
<h:panelGrid columns="2" columnClasses="colSortText,colSortImg">
<h:outputText value="Emp No." />
<h:panelGrid rendered="#{allUserBean.sortType == 0}">
<h:graphicImage url="/images/sortup.gif" rendered="#{allUserBean.up}" />
<h:graphicImage url="/images/sortdown.gif" rendered="#{!allUserBean.up}" />
</h:panelGrid>
</h:panelGrid>
</h:commandLink>
</f:facet>
<h:outputText value="#{pmUsers.employeeNo}" />
</h:column>
<h:dataTable var="iterm" value="#{pmUsers.userMultyResumeList}"">
<h:outputText value="#{iterm}" />
</h:dataTable> `
该节目成功,但无法显示userMultyResumeList的其他dataTable。 我使用了测试代码,这是假的。所以该值不为空,我不知道为什么
userList代码为:
private List<User> userList;
userList = userService.getUsersByPMGroupNotIncluded("", groupIds);
答案 0 :(得分:0)
<h:dataTable var="iterm" value="#{pmUsers.userMultyResumeList}"">
请用此
替换此行<h:dataTable var="iterm" value="#{pmUsers.userMultyResumeList}">