So I have an inputText that has its value hook to myBean.text, I want that if I click enter/return key, the inputText will invoke a method inside
inputText
myBean.text
you can probably do something like this:
inside your bean:
public void dosomething(ValueChangeEvent event) { System.out.println("I did something"); } public void fakeaction(ActionEvent event) { System.out.println("I do no nothing"); }