3 Replies Latest reply on Mar 23, 2011 6:14 AM by ilya_shaikovsky

    Suggestion doesn't disappear

    pdloc

      Hello,

      I try using suggsetion box as a combobox like the second example in live demo.

      http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=suggestionBox

       

      The problem is that if I double click on the arrow icon, the suggestion box will not disappear after that. In fact, we just need to repeatedly click on the icon, the issue will occurs.

       

      A similar post was created on stack-overflow, but no answer

       

      Loc

        • 1. Suggestion doesn't disappear
          boy18nj

          this is not solution, but see if it works for you-

           

          1) double click on arrow icon

          2) click in field

          3) click outside field

           

          now the message will go away.

          1 of 1 people found this helpful
          • 2. Re: Suggestion doesn't disappear
            pdloc

            Thanks for your answer,

            However, I used this component for several fields. And when I clicked on them one by one quickly, some dropdowns didn't disappear. The end users were not happy with that behavior.

            • 3. Re: Suggestion doesn't disappear
              ilya_shaikovsky

              after you clicked once - callSuggestion API will focus the field automatically, and the second click causes the field to loose focus. So just try to modify the code to

              onclick="#{rich:component('suggestion')}.callSuggestion(true); focusInputComponent()"

               

              focusInputComponent() should return focus to input.