Note that there are some explanatory texts on larger screens.

plurals
  1. POWicket: (how) can I associate an AjaxCheckBox to the CheckGroupSelector?
    primarykey
    data
    text
    <p>I have a problem similar to this question: <a href="https://stackoverflow.com/questions/5988905/wicket-can-checkgroup-be-ajax-enabled">Wicket: can Checkgroup be Ajax enabled?</a></p> <p>I'm using a ListView where each Item has a checkbox. I also have a "select all" checkbox. I am using a <code>CheckGroup</code>, <code>CheckGroupSelector</code> and <code>Check</code> and everything works great. Now there is a new requirement to change the state on some other controls on the page when the checkboxes are updated.</p> <p>Nicktar's suggestion in the above linked question was the first that came to my mind, too, but I haven't been able to find out how it is possible to use <code>AjaxCheckBox</code> with <code>CheckGroup</code>/<code>CheckGroupSelector</code>. According to the doc you have to use <code>Check</code>.</p> <p>But in <a href="http://mail-archives.apache.org/mod_mbox/wicket-users/200807.mbox/%3C23eb48360807221008g407b1ed8ue01ac84716d18f9b@mail.gmail.com%3E" rel="nofollow noreferrer" title="Igor Vaynberg&#39;s mail">this mail from 2008</a>, Igor Vaynberg also states that it is possible to use <code>AjaxCheckBox</code> in a <code>CheckGroup</code>. </p> <p>I tried it with just replacing where I used <code>Check</code> with the <code>AjaxCheckBox</code>, but it didn't work, the <code>CheckGroupSelector</code> didn't find the checkboxes anymore.</p> <p>I also looked into using the <code>onSelectionChanged</code> method in <code>CheckGroup</code>, but I'd like to avoid using this as it triggers another roundtrip to the server, as far as I understood.</p> <p>Can someone give me a hint? Or is there another nice solution for this?</p> <p>By the way, I'm using Wicket 1.4.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload