我有许多 outputLink 菜单,我从数据库 mysql 生成它们,例如:
<ui:repeat value="#{loginAction.subMenusBeans.subMenusBeansList}"
var="subMenusBeansList">
<ui:fragment rendered="#{menusBeansList.menuId == subMenusBeansList.menuId}" >
<h:commandLink id="circlLink" value="#{subMenusBeansList.subMenuName}"
action="{subMenusBeansList.subMenuLink}" />
</ui:fragment>
</ui:repeat>
我从数据库中获取操作值并将其设置为“subMenusBeansList.subMenuLink”
输出:
head quarter
main offices
offices
and so on..
当我点击上述任何链接时
异常:
action="#{subMenusBeansList.subMenuLink}":
找不到方法:
我想从数据库设置操作方法名称,因为我有很多超链接,并且想从数据库设置所有链接操作并使用 ui:repeat 将它们生成为 xhtml 但是当我单击从#{subMenusBeansList.subMenuLink}'
抛出异常生成的任何超链接操作时
javax.servlet.ServletException: javax.el.MethodNotFoundException: /template/
templateslider.xhtml @36,135 action="#{subMenusBeansList.subMenuLink}":
Method not found: com.ss.managedbeans.SubMenusBeans@552edddd.subMenuLink()