Hi, I have a form with 2 address blocks where each "block" is a WebMarkupContainer. The 1st block is the home address which basic the block no, postal code, street name etc. The 2nd block is the billing address. So when a user clicks on the check box stating that his home address is the billing address, 2nd block will be disabled. I can do this by disabling each field in the 2nd "block". Is there a way to disable this by block e.g.
form.add(new AjaxCheckBox("sameAddressForBilling") { protected void onUpdate(AjaxRequestTarget target) { /* THIS DOES NOT WORK */ form.replace(billingAddressBlock.setEnabled(!((Boolean) getModelObject()))); target.addComponent(billingAddressBlock); } }); What am I missing here? TQ /lim/ -- View this message in context: http://www.nabble.com/Enable---Disable-Container-using-AJAX-tp18251827p18251827.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]