Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Why can't you add an <a href="http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/form/AjaxFormChoiceComponentUpdatingBehavior.html" rel="nofollow"><code>AjaxFormChoiceComponentUpdatingBehavior</code></a> to the <code>CheckGroup</code> ?</p> <p>From <code>AjaxFormComponentUpdatingBehavior</code>'s JavaDoc: </p> <blockquote> <p>NOTE: This behavior does not work on Choices or Groups use the AjaxFormChoiceComponentUpdatingBehavior for that.</p> </blockquote> <p><a href="http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/form/AjaxFormChoiceComponentUpdatingBehavior.html" rel="nofollow"><code>AjaxFormChoiceComponentUpdatingBehavior</code></a> is the behavior to use with <code>CheckGroup</code>s and <code>RadioGroup</code>s. If you used an <code>AjaxFormComponentUpdatingBehavior</code> with the <code>onchange</code> event, you'd run into <a href="http://webbugtrack.blogspot.com/2007/11/bug-193-onchange-does-not-fire-properly.html" rel="nofollow">this bug</a> with IE . <code>AjaxFormChoiceComponentUpdatingBehavior</code> handles this properly, <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.8/org/apache/wicket/ajax/form/AjaxFormChoiceComponentUpdatingBehavior.java#63" rel="nofollow">adding <code>onclick</code> event handlers</a> to each of the <code>Check</code>s in the <code>CheckGroup</code>. </p> <p>As a side note, what Igor stated in that mail, is that <code>CheckBox</code> can be replaced with <code>AjaxCheckBox</code>, not <code>Check</code>. <code>AjaxCheckBox</code> is nothing more than a convenience subclass of <code>CheckBox</code> with an <code>AjaxFormComponentUpdatingBehavior("onclick")</code>, as <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.apache.wicket/wicket/1.4.4/org/apache/wicket/ajax/markup/html/form/AjaxCheckBox.java" rel="nofollow">the sources</a> show.</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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