i'm using jsf and ajax. I want to catch inputText change, and print text out to console. Here is xhtml file:
<h:form>
<h:inputText id="name" name="string" value="#{class.string}" >
<f:ajax listener="#{class.printString}" event="valueChange" execute="name"/>
</h:inputText>
</h:form>
and here managedBean, "printString" function
public void printString(AjaxBehaviorEvent event) {
System.out.println(string);
}