1 Reply Latest reply on Nov 7, 2009 2:13 PM by Nick Belaevski

    Problem of suggestionbox, with converter and reRender attrib

    chung siu man Newbie

      Hi.

      I follow the way of using <a:outputPanel>, but got javascript error, which prevent the popup of the selection box comes from suggestion box.

      All I want is, function allow user to select item from suggestion box, or user manual input value in the input box. If user input value, the converter will change input value to upper case and re-show on the input text box.

      So, can you further suggest way to solve my problem

      Sample Code
      ---------------
      <a:outputPanel id="dacBlock" layout="block" >
      <h:panelGrid width="80px" columns="2">
      <h:inputText id="currCode" value="#{glJrnlVchrMast.currCode}" >
      <f:converter converterId="itemBeanToUpperCaseConverter"/>
      <a:support event="onchange" reRender="dacBlock"/>
      </h:inputText>

      <h:graphicImage value="../../img/arrow.png"
      onclick="#{rich:component('suggestion4')}.callSuggestion(true)"
      alt=""/>

      <rich:suggestionbox id="suggestion4" for="currCode" fetchValue="#
      {currCodeDn.pk.currCode}" height="200" width="300"
      suggestionAction="#{glCurrCodeDnList.autoComplete}"
      var="currCodeDn" selfRendered="true">
      <h:column>
      <h:outputText value="#{currCodeDn.pk.currCode}" />
      </h:column>
      <h:column>
      <h:outputText value="#{currCodeDn.currDesc}" />
      </h:column>
      <a:support event="onselect"
      reRender="dacBlock"/>
      </rich:suggestionbox>
      </h:panelGrid>

      </a:outputPanel>