4 Replies Latest reply on Aug 6, 2014 3:07 AM by job93

    autocomplete richfaces 4 doesnt work probably

    job93

      Hello,

       

      I had a <rich:suggestionbox and had to change it to an  <rich:autocomplete Component. My problem is now that the autocomplete acts strange. (attached picture).

      ill tried a bunch of options but nopne of them really worked.

       

      Here is my xhtml code

       

      http://pastie.org/9429373

       

      I have the component a lot in my code and it doesnt really work somewhere.

      Please help and thanks in advandce

        • 1. Re: autocomplete richfaces 4 doesnt work probably
          michpetrov

          Hi,

           

          could you explain what isn't working? The code looks ok and the picture doesn't make it clear.

          • 2. Re: autocomplete richfaces 4 doesnt work probably
            job93

            Thanks for your reply.

             

            The problem is as you see at the picture the autocomplete is expanded and all values from the list are displayed.

            The values shouldnt be visible only if you write some input it should suggest an matching value. The whole side is messed up because the

            autocomplete component needs a lot of space.

            This only happens when the attribute mode is set to "client" if its set to ajax or something else nothing is displayed and it dont suggest anything but fires an ajax request.

            and also its not possible to get an dropdown box with the values if you click at the component if thats even possible but i guess it is throw the showButton attribute.

            • 3. Re: autocomplete richfaces 4 doesnt work probably
              michpetrov

              Ah ok. The list should be hidden, can you check your CSS? It looks like something in there is making it visible, the class of the element that should be hidden is "rf-au-lst-cord".

              • 4. Re: autocomplete richfaces 4 doesnt work probably
                job93

                Sry for a long time no reply.

                Your Answer led me to the solution.

                The Problem was that the Richfaces.css wasnt found it was there but the path was wrong.

                 

                Thanks