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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -