jsf 中datatable中嵌套datatable的实现

qianhen136 2010-10-21 05:12:55
请教如何去实现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类型的。

请指教 。
...全文
123 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
blazingfire 2010-10-22
  • 打赏
  • 举报
回复
日志怎么说funcEntry是String类型呀?
你把funcEntry输出看看
qianhen136 2010-10-22
  • 打赏
  • 举报
回复
怎么没有人回复一下喃?不能实现吗?

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧