2 Replies Latest reply on May 12, 2007 4:17 AM by ter ron

    a4j:support and rich:suggestionbox

    ter ron Newbie


      I have a text field (su1e) with a suggestionbox.
      When the user selects a suggestion, another field (su1ed) should be populated accordindly.
      For that to happen I use a a4j:support reRender="su1ed".

      And this is working in the case the user uses the keyboard to select a suggestion (presses enter). But if he uses the mouse to make the selection (click), the dependent field does not rerender.

      <h:inputText value="#{backBean.name}" id="su1e">
       <a4j:support event="onkeyup" ajaxSingle="true" reRender="su1ed"/>
      <rich:suggestionbox for="su1e" suggestionAction="#{backBean.autocomplete}"
       width="150" height="200">
       <h:column> <h:outputText value="#{suggest}"/> </h:column>
      <h:inputText value="#{backBean.depa}" id="su1ed"/>

      I tried sorrounding with <a4j:region> but that is also not doing it.