【发布时间】:2013-07-30 13:54:07
【问题描述】:
我正在使用 Seam 2.3,我想将方法操作调用到 h:commandButton 中。当我单击时,我可以在控制台中看到一个选择查询,但我的方法永远不会调用。
<h:form id="form">
<rich:panel id="panelInfoModif" rendered="#{ClassAction.beanSelected()}">
...
<h:commandButton value="Submit" action="#{ClassAction.submit()}" >
<a:ajax execute="@this"></a:ajax>
</h:commandButton>
</rich:panel>
</h:form>
【问题讨论】:
-
没有例外? bean 的名称应以小写字母开头。还有 ajax 是干什么用的?
-
没有例外。好的,但它不是我的 bean 的真实名称。如果我删除 ajax,我会得到相同的结果。