wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexandre ricciardi <alexandre.ricciardi.reac...@gmail.com>
Subject AjaxCheckBox ListView Bug
Date Wed, 20 Apr 2016 15:23:42 GMT
Hello,


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);
}
};

Thanks for your help.

Alexandre

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message