jsf - listener for <p:autocomplete> when an user clicks on an option -
i want navigate page when user clicks option dropdown menu of <p:autocomplete>
, tried using onclick
listener of <p:autocomplete>
triggers whenever click on <p:autocomplete>
textbox. there way achieve using javascript or using backing bean, listener should use required result?
you may use ajax itemselect event
<p:autocomplete ...> <p:ajax event="itemselect" listener="#{bean.handleselect}" /> </p:autocomplete>
this call handleselect method in bean whenever item selected
you may @ primefaces showcase
Comments
Post a Comment