【发布时间】:2013-03-27 22:33:07
【问题描述】:
我正在尝试使用以下代码提交表单,但它没有填充 bean 中的字段:
//input above
<h:commandButton actionListener="#{transferenciaVagaBean.search()}" value="Search">
<f:ajax render="@form"/>
</h:commandButton>
不过,如果我将组件更改为:
//input above
<a4j:commandButton actionListener="#{transferenciaVagaBean.search()}"
value="Search"
render="@form" />
完美运行。我使用 h:commandButton 做错了吗?
我尝试从 actionListener 更改为 action,因为我之前遇到过这个问题,但它对 h:commandButton 的任何一种方式都不起作用。
【问题讨论】: