Isn't CheckBox using JavaScript, executed on the client, to generate
the "onclick" callback? See CheckBox.onComponentTag... e.g.

tag.put("onclick", "window.location.href='" + url +
                                        (url.toString().indexOf('?') > -1 ? 
"&" : "?") + getInputName() +
                                        "=' + this.checked;");
Ernesto


On Tue, Jun 29, 2010 at 10:00 PM, Michael Small
<[email protected]> wrote:
>
> I'm currently trying to test my implementation of
> CheckBox.onSelectionChanged(Object newSelection) ... I've created my
> CheckBox as follows ...
>
> item.add(new CheckBox("checkBoxId") // note that model object comes thru
> compound property model
> {
>   �...@override
>    protected void onSelectionChanged(final Object newSelection)
>    {
>        // my implementation code is here
>    }
>
>   �...@override
>    protected boolean wantOnSelectionChangedNotifications()
>    {
>        return(true);
>    }
> });
>
> In my test, however, I can't seem to get the onSelectionChanged to fire ...
>
> formTester.setValue("checkBoxId", true);
>
> I would assume that call would result in my onSelectionChanged method being
> invoked, but that is not the case.  Any ideas?
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Testing-CheckBox-onSelectionChanged-Object-newSelection-using-FormTester-tp2272641p2272641.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to