Is there a HTML5 event "oninput" for <f:ajax>?

Viewed 513

I have in JSF 2.3 a html5 number-input and currently the ajax-listener is triggered for every change-event. but the listener should also fire immediately when i manually change the input-value by typing something, so i would need both; the onchange and a keyup or the new HTML5 "oninput"-event. Is there a way to handle this requirement with the ajax-listener?

<h:inputText id="minRating" value="#{bankingConroller.minRating}"  
             pt:type="number" pt:min="0" pt:step="1">

   <f:ajax event="change" listener="#{bankingConroller.setRatings()}" 
           execute="minRating" />
</h:inputText>
0 Answers
Related