5 Replies Latest reply on Sep 28, 2007 9:11 PM by henrik lindberg

    suggestionbox problem 3.1.1 snapshot sept 24

    henrik lindberg Apprentice

      Hi,
      I had trouble with the selectionbox in 3.0.2, so I swtiched to latest 3.1.1 (sept 24) to see if it made a difference (guess why I am posting :( )

      When I start typing in the input field the following happens:
      - the character I typed is shown in the field
      - a matching list is shown (just the text) in the very top left corner
      - a matching list is shown beneath the field, but it moved the text before the field as well, and the list is just text inserted into the page - no border, no background etc.
      - keyboard focus goes away from the field
      - clicking into the field again - the suggestion box stuff is not repeated - instead I get the FF default autocomplete (which is turned of in the field with "autocomplete=false")

      Here is the code snippet...

       <div>
       <h:inputText
       id="tagstring"
       styleClass="OutputField Important Message"
       value="#{tagHome.tagString}"
       autoComplete="false"
       />
       <rich:suggestionbox for="tagstring"
       tokens=","
       suggestionAction="#{tagLookup.autoComplete}"
       var="tag"
       fetchValue="#{tag.tagWord}"
       width="200"
       height="300"
       minChars="1"
       rows="10"
       border="1"
       >
       <h:column>
       <h:outputText value="#{tag.tagWord}" />
       </h:column>
       </rich:suggestionbox>
       </div>
      

      this is inside a table, that is inside a h:form
      I can post more, but posting this just to make sure I haven't done anything stupid so far...

      Regards
      - henrik