1

I have a button that calls a method from bean. But it does not call the method. I have other buttons in other pages, they all work fine but in this page i have a problem and dont know why.

the ui code :

<h:form>

    <p:commandButton value="#{label.save}" actionListener="#{encoderBean.saveEncoder}" styleClass="ui-priority-primary" /> 

</h:form>

the bean code :

public void saveEncoder() {
    System.out.println("Save Encoder");
 }

thanks in advance. By the way, i have tried all the things in stack overflow but they all did not work out.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Umur İnan
  • 143
  • 2
  • 12

0 Answers0