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 Wischnewski (JIRA)" <ji...@apache.org> on 2014/06/06 10:53:02 UTC

[jira] [Updated] (WICKET-5613) Add AjaxEventBehavior to Component Check

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

Martin Wischnewski updated WICKET-5613:
---------------------------------------

    Attachment: checkbox.zip

> Add AjaxEventBehavior to Component Check
> ----------------------------------------
>
>                 Key: WICKET-5613
>                 URL: https://issues.apache.org/jira/browse/WICKET-5613
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.15.0
>            Reporter: Martin Wischnewski
>            Priority: Minor
>         Attachments: checkbox.zip
>
>
> Following situation:
> There is only a CheckGroup with one Check Component on a Page.
> If I add an AjaxEventBehavior("click") to the Component Check, the checkbox will not be checked  on the HtmlPage anymore.
> public HomePage(final PageParameters parameters) {
> 		super(parameters);
> 		CheckGroup<Boolean> group = new CheckGroup<Boolean>("checkgroup", new ArrayList<Boolean>());
> 		add(group);
> 		Check<Boolean> check = new Check<Boolean>("check");
> 		check.add(new AjaxEventBehavior("click") {
> 			@Override
> 			protected void onEvent(AjaxRequestTarget target) {
> 			}
> 		});
> 		group.add(check);
> 	}
> I add a Quickstart  as attachment.



--
This message was sent by Atlassian JIRA
(v6.2#6252)