Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5130

AutoCompleteTextField hides combo boxes - remove setting

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.6.0
    • 7.0.0-M1
    • None
    • tested on Windows 7, IE9, valid also for IE7 and IE8

    Description

      When I have AutoCompleteTextField in form and there are DropDowns below the autocomplete text field, AutoCompleteTextField drop down hides components below.

      Steps to simulate the behaviour:

      1.) I created maven project
      mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=6.6.0 -DgroupId=net.betlista -DartifactId=bugs-dropdown -DarchetypeRepository=https://repository.apache.org/ -DinteractiveMode=false

      2.) in pom.xml I enabled extensions

      3.) I changed getHomePage() in WicketApplication application to show my new test page

      4.) page markup is

      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Insert title here</title>
      </head>
      <body>

      <form>
      <input type="text" wicket:id="auto"/><br>
      <select wicket:id="drop1"></select><br>
      <select wicket:id="drop2"></select><br>
      <input type="text" wicket:id="text"/><br>
      </form>

      </body>
      </html>

      5.) Java class for page is

      package net.betlista;

      import java.util.Iterator;
      import java.util.LinkedList;
      import java.util.List;

      import org.apache.wicket.extensions.ajax.markup.html.autocomplete.AutoCompleteTextField;
      import org.apache.wicket.markup.html.WebPage;
      import org.apache.wicket.markup.html.form.DropDownChoice;
      import org.apache.wicket.markup.html.form.TextField;

      public class AutoCompleteAndDropDownTestPage extends WebPage {

      public AutoCompleteAndDropDownTestPage() {
      add(new AutoCompleteTextField<Integer>("auto") {
      @Override
      protected Iterator<Integer> getChoices(final String input)

      { return getNewList(20).iterator(); }

      });

      add(new DropDownChoice<Integer>("drop1", getNewList(15)));
      add(new DropDownChoice<Integer>("drop2", getNewList(10)));
      add(new TextField<String>("text"));
      }

      private static List<Integer> getNewList(final int upTo) {
      final LinkedList<Integer> list = new LinkedList<Integer>();
      for (int i = 0; i < upTo; i++)

      { list.add(i); }

      return list;
      }
      }

      Attachments

        1. ScreenShot326.png
          23 kB
          Betlista
        2. ScreenShot327.png
          27 kB
          Betlista
        3. ScreenShot328.png
          18 kB
          Betlista

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              betlista Betlista
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: