<input type="checkbox" id="foo"/><a href="#" onclick="var
c=document.getelementbyid('foo'); c.checked=!c.checked;">click</a>-igor On Tue, Apr 8, 2008 at 4:32 PM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I need to sync a link to a checkbox. Meaning, that clicking on the > checkbox or clicking on the link should select/deselect the checkbox. > > I was thinking on adding an AbstractBehavior to the link and then do it > manually with Javascript in the onComponentTag method. Alternatively, I > might be able to do it programmatically with an AjaxEventBehavior on the > link by checking the link in the onEvent method. > > I have however a sneaking suspicion that there's probably an easier way > to do this in Wicket. Any suggestions welcome. > > Michael > > > --------------------------------------------------------------------- > 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]
