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 2016/04/20 17:15:25 UTC
[jira] [Resolved] (WICKET-6149) ListView of AjaxCheckBox, only the
first checkbox is callbacked
[ https://issues.apache.org/jira/browse/WICKET-6149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-6149.
-------------------------------------
Resolution: Cannot Reproduce
Please use the users@ mailing lists for help.
Also it would be easier to help you if you provide a quickstart application.
> ListView of AjaxCheckBox, only the first checkbox is callbacked
> ---------------------------------------------------------------
>
> Key: WICKET-6149
> URL: https://issues.apache.org/jira/browse/WICKET-6149
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.2.0
> Environment: jetty, chrome
> Reporter: Alexandre RICCIARDI
> Priority: Minor
>
> I want to update a dropdown list with ajax calls triggered by checkboxes.
> I have a ListView of AjaxCheckBoxes but only the first AjaxCheckBox is callbacked.
> It appears that all ajax calls are triggered by the first check box. Changing the following checkboxes have not effect.
> DropDownChoice<String> ddc = new DropDownChoice<String>("ddcName", listProps);
> ddc.setOutputMarkupId(true);
> add(ddc);
> final IModel<ValueMap> thisModel = getModel();
> ListView<LauncherModule> listModules = new ListView<LauncherModule>("list.module.beans", PluginsConfigHelper.getModules()) {
> private static final long serialVersionUID = 1L;
> @Override
> protected void populateItem(ListItem<Module> item) {
> AjaxCheckBox box = new AjaxCheckBox("myCheckBox", Model.of(Boolean.TRUE) {
> private static final long serialVersionUID = 1L;
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> target.add(ddc);
> }
> };
> box.setOutputMarkupId(true);
> box.setOutputMarkupPlaceholderTag(true);
> item.add(box);
> }
> };
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)