You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Hendy Irawan (JIRA)" <ji...@apache.org> on 2014/09/30 11:45:33 UTC

[jira] [Comment Edited] (WICKET-5603) OnChangeAjaxBehavior attached to DropDownChoice produces two Ajax requests in Chrome v35

    [ https://issues.apache.org/jira/browse/WICKET-5603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153020#comment-14153020 ] 

Hendy Irawan edited comment on WICKET-5603 at 9/30/14 9:45 AM:
---------------------------------------------------------------

I'd like to add that {{wicket-select2}} no longer works with 6.17's {{OnChangeAjaxBehavior}} (previously works with 6.16).

I had to use {{new AjaxFormComponentUpdatingBehavior("change")}} instead for 6.17.


was (Author: ceefour):
I'd like to add that {{wicket-select2}} no longer works with 6.17's {{OnChangeAjaxBehavior}} (previously works with 6.16).

I had to use {{new AjaxFormComponentUpdatingBehavior('change')}} instead for 6.17.

> OnChangeAjaxBehavior attached to DropDownChoice produces two Ajax requests in Chrome v35
> ----------------------------------------------------------------------------------------
>
>                 Key: WICKET-5603
>                 URL: https://issues.apache.org/jira/browse/WICKET-5603
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.9.1, 7.0.0-M1
>         Environment: Chrome 35.0.1916.114
>            Reporter: Andrey Krasnopolsky
>            Assignee: Andrea Del Bene
>             Fix For: 7.0.0-M3, 6.17.0
>
>         Attachments: test.zip, wicket.patch
>
>
> I have a DropDownChoice with attached OnChangeAjaxBehavior, like this:
> {code:borderStyle=solid}
> new DropDownChoice<>("dd", new Model<>(), Arrays.asList( "First", "Second"))
>     .add( new OnChangeAjaxBehavior() {
>         @Override
>         protected void onUpdate(AjaxRequestTarget target) {
>             System.out.println( "update" );
>         }
> });
> {code}
> When selecting any of drop down options, two Ajax requests being generated.
> It behaves OK in IE, FF and Chrome v34, only Chrome v35 is affected 
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)