I am trying to submit a form with the following code but it doesn't populate the fields in the bean:
//input above
<h:commandButton actionListener="#{transferenciaVagaBean.search()}" value="Search">
<f:ajax render="@form"/>
</h:commandButton>
Althoug, if I change the component to:
//input above
<a4j:commandButton actionListener="#{transferenciaVagaBean.search()}"
value="Search"
render="@form" />
It works perfect. Am I doing something wrong using h:commandButton?
I tried to change from actionListener
to action
since I had problems before with this, but it didn't work either way with h:commandButton
.