You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/06/25 16:48:23 UTC
[jira] [Updated] (WICKET-5130) AutoCompleteTextField hides combo
boxes - remove setting
[ https://issues.apache.org/jira/browse/WICKET-5130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov updated WICKET-5130:
------------------------------------
Assignee: Sven Meier
> AutoCompleteTextField hides combo boxes - remove setting
> --------------------------------------------------------
>
> Key: WICKET-5130
> URL: https://issues.apache.org/jira/browse/WICKET-5130
> Project: Wicket
> Issue Type: Bug
> Affects Versions: 6.6.0
> Environment: tested on Windows 7, IE9, valid also for IE7 and IE8
> Reporter: Betlista
> Assignee: Sven Meier
> Labels: autocomplete, autocompletetextfield
> Fix For: 7.0.0
>
> Attachments: ScreenShot326.png, ScreenShot327.png, ScreenShot328.png
>
>
> 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;
> }
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira