I have an inputText
with type-ahead where user can type a job class and a drop-down shows, and then they click on select - it populates the data. But, what I want to do is instead of the "Select" button I want to put a onclick
or something on my inputText that when the dropdown shows and the user clicks on the drop down value it can populate data that it was doing with my button. Thanks for the help.
Here is my code:
<h:form>
<b:inputText id = "inputName" value = "#{myBean.currentJobSelected}" typeahead="true" typeahead-values="#{myBean.cPaySearchList}"
placeholder="e.g. Apple" required="true" ajax="true" >
<f:ajax render=":dTable" />
</b:inputText>
<b:commandButton action="#{myBean.getAllMethods}" update=":dTable" value= " Select" >
<f:ajax execute="inputName" render=":dTable" />
</b:commandButton>
</h:form>