Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
6.6.0
-
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)
});
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++)
return list;
}
}
Attachments
Attachments
Issue Links
- relates to
-
WICKET-4893 AutoCompleteTextField removes DropDownChoice from Page
- Resolved