开发者

autocomplete select listener

I would like to use a method in rich:autocomplete component much the same way like ValueChangeListener, the problem is that I cannot submit the form in order for the Listener to get fired, that's why I wanted to ask you how could I intercept an event in order to execute a Listener in my backing bean. I have tried this:

<rich:autocomplete id="autocompleteOficina" 
  value="#{agenciaDM.oficinaSeleccionada}" converter="entityConverter"
  autocompleteList="#{suggestionEntitiesDM.availableEntitiesList(suggestionEntitiesDM.oficina)}"
  var="oficina" fetchValue="#{oficina.label}" showButton="true">
  <a4j:开发者_开发问答ajax event="change" listener="#{oficinaController.empresaSearchSelectedListener}"></a4j:ajax>
  <rich:column>
    <h:outputText value="#{oficina.label}" />
  </rich:column>
</rich:autocomplete>

I have also tried the select event, but no one executed the Listener, why is it not fired?.


Could you please enclose it inside

<h:form></h:form>

Also please check the listener method signature in the backing bean

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜