开发者

autocomplete select listener

开发者 https://www.devze.com 2023-04-12 14:57 出处:网络
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 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

精彩评论

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

关注公众号