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:01 UTC

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

Martin Wischnewski created WICKET-5613:
------------------------------------------

             Summary: 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)