Description
if button.onsubmit() takes the button out of hierarchy form processing breaks. the reason is that after onsubmit() of the button is ran wicket will call button.getform() which returns null because the button is out of the component hierarchy