this is trivial to do if you want to use wicket's ajax support instead of the prorotype.js. in fact there are plenty examples in wicket-examples/ajax that will give you a clue.

basically...

call setOutputMarkupId(true) on the label.
use AjaxCheckBox and in onclick() add the label to the AjaxTarget

thats it.

-Igor



On 4/25/06, Stefan Lindner < [EMAIL PROTECTED]> wrote:
Dear wicket supporters,

I am looking for some hints for the following: I have a form containing
a check box. This form uses AJAX to submit the check box value after
klicking it. Not I want to update a label on the page when the check box
is klicked. I found the "ajax with prototype - Ajax example using
prototype.js" example that does something similar. But I found no way to
manipulate the on click script for the check box.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to