jsf 中datatable中嵌套datatable的实现

qianhen136 qianhen136 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
请教如何去实现datatable中再嵌套一个datatable?

我这里总是报错:

2010-10-21 17:10:56 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet Faces Servlet threw exception
org.apache.jasper.el.JspPropertyNotFoundException: /operation.jsp(88,21) '#{funcEntry.functionName}' Property 'functionName' not readable on type java.lang.String

页面是:
<h:dataTable width="100%" value="#{userBean.rightList}" var="entry"
id="rightTable" border="0" cellspacing="0" cellpadding="0" >
<h:column>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<h:outputText value="#{entry.typeName}"></h:outputText>
</td>
</tr>
<tr>
<td height="2" background="images/border_mid.gif"></td>
</tr>
<tr>
<td>
<h:dataTable width="100%" value="#{entry.functionList}" var="funcEntry"
id="functionTable" border="0" cellspacing="0" cellpadding="0">
<h:column>
<h:outputText value="#{funcEntry.functionName}"></h:outputText>
</h:column>
</h:dataTable>
</td>
</tr>
</table>
</h:column>
</h:dataTable>

后台的数据我觉得是没有问题的,functionName也是string类型的。

请指教 。
...全文
评论 3
收藏 已收藏
分享
返回顶部
qianhen136
Web 开发 81,108 成员 341,720 内容