One more information: when I change the source to: target.addComponent(singlePersonPanel); target.addComponent(companyPanel); (that means I add the panels instead of the form) I get the following error in ajax debug view:
ERROR: Component with id [[registerForm_registerCompanyPanel]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. ERROR: Component with id [[registerForm_registerSinglePersonPanel]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Seems to be clear, but I also added: singlePersonPanel.setOutputMarkupId(true); companyPanel.setOutputMarkupId(true); If I had a look into the sourcecode I can find the component id's: span wicket:id="registerSinglePersonPanel" id="registerForm_registerSinglePersonPanel" wicket:panel ... /wicket:panel /span span wicket:id="registerCompanyPanel" id="registerForm_registerCompanyPanel" wicket:panel> ... /wicket:panel /span any ideas??? -- View this message in context: http://www.nabble.com/Show-and-hide-panel-with-radio-choice-tf4779601.html#a13682081 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]