1 Reply Latest reply on May 28, 2009 9:49 AM by pos79

    Problems with suggestionbox and Internet Explorer / IE

    pos79

      Hi folks!

      I am using the richfaces suggestionbox in my web application to autocomplete user input.

      This is my page source:

      <h:inputText value="#{backing.interests}" id="suggest"/>
      <rf:suggestionbox for="suggest" suggestionAction="#{backing.getInterestsList}}" var="suggest">
       <h:column>
       <h:outputText value="#{suggest}"/>
       </h:column>
      </rf:suggestionbox>
      


      My backing bean returns a list of strings. In Firefox everything works fine.

      But in IE7 and IE8 it doesn't work. The suggestions appear under my input field but if I select one of the suggested items nothing happens and the browser throws a JavaScript error:

      "internet explorer object does not support this property or method"

      Line: 29
      Character: 1495
      Code: 0
      URI: http://localhost:8080/my-project/a4j/g/3_3_1.GAorg/richfaces/renderkit/html/scripts/scriptaculous/effects.js.c1

      So it seems to be a scriptaculous problem? The line in effects.js seems to be this one:

      effect.element.forceRerendering();
      


      Does anybody know how to solve this problem?

      Many thanks! :-)

      Cheers,
      Nils

        • 1. Re: Problems with suggestionbox and Internet Explorer / IE
          pos79

          Okay, problem solved (after hours of research).

          The problem was quite trivial... RichFaces uses prototype. I included another version of prototype somewhere else in my source code (which is redundant of course). When I remove my own prototype inclusion everything works fine. :-)

          Thanks for reading...