We have autocomplete component which is populated with companies. We also have dropdown option enabled for that autocomplete. Now, we need for selected company to retrieve all addresses, but when I use dropdown list and select an option value, I've always get previously selected value in companyChanged method. Also, when I type some values to the autocomplete and choose one of the suggested values everything works correctly
Code: Select all
<p:autoComplete dropdown="true" completeMethod="#{administrationBean.autocompleteCompanies}">
<p:ajax event="itemSelect" listener="#{administrationBean.companyChanged}" update="streetPanel" />
</p:autoComplete>
Regards