[ 
https://issues.apache.org/jira/browse/WICKET-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clément Plantier resolved WICKET-1800.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-M3

The problem seems to be resolved in 1.4-m3.

> After refreshing an AutoCompleteTextField with Ajax, onclik events on 
> suggest-list stops functioning
> ----------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1800
>                 URL: https://issues.apache.org/jira/browse/WICKET-1800
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-extensions
>    Affects Versions: 1.4-M2
>         Environment: Firefox 3, IE7
>            Reporter: Clément Plantier
>            Priority: Minor
>             Fix For: 1.4-M3
>
>
> When I refresh an AutoCompleteTextField using an ajax request, I cannot click 
> anymore on the suggest list to select an element. Selecting with keyboard 
> works fine.
> Tested with Firefox3, IE7.
> Can reproduce using this code :
> <input type="text" wicket:id="myField"/>
> <a wicket:id="myLink">MyAjaxLink</a>
> final AutoCompleteTextField myField = new AutoCompleteTextField(
>               "myField") {
>       private static final long serialVersionUID = 1L;
>       @Override
>       protected Iterator<String> getChoices(String input) {
>               ArrayList arrayList = new ArrayList();
>               arrayList.add("test");
>               return arrayList.iterator();
>       }
> };
> myField.setOutputMarkupId(true);
> add(myField);
> final AjaxLink myLink = new AjaxLink("myLink") {
>       @Override
>       public void onClick(AjaxRequestTarget target) {
>               target.addComponent(myField);
>       }
> };
> add(myLink);
> This works fine before I click on the link, it is broken after.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to