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 2014/06/15 15:41:01 UTC
[jira] [Resolved] (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 Grigorov resolved WICKET-5613.
-------------------------------------
Resolution: Implemented
This is improved in Wicket 7.x.
See:
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault()isdeprecatedinfavourof#setPreventDefault()WICKET-5197
> 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)