title: Listening to onSelect events from Autocomplete (Primefaces) component
body: <p>I am trying to listen to <code>select</code> event from autocomplete using attribute <code>selectListener</code>.
  I am passing a <code>remoteCommand</code> as select listener. But the <code>selectListener</code> never calls this <code>remoteCommand</code> method.</p>
  
  <p>My code follows:</p>
  
  <pre><code>&lt;h:form&gt;
      &lt;p:autoComplete autocomplete="true" completeMethod="#{search.fetchSuggestions}" value="#{search.selectedSuggestion}" selectListener="moveToSelectedPage()"/&gt;
  
      &lt;p:remoteCommand name="moveToSelectedPage" action="firstPage.xhtml?faces-redirect=true" /&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>All I am trying to do is, navigating to a different page after the user selects a particular suggested item among suggestions made by autocomplete.</p>