Thanks for your answer, it works with
target.addComponent(submitButton);
one more little question : how can I test my form with wicket tester?
Because formTester.setValue doesn't send "keyup" event... so my button is
still disable when I test my form with JUnit and WicketTester.
I try with :
tester.executeAjaxEvent("infosPersoForm:email", "keyup");
but I get an error :
org.apache.wicket.WicketRuntimeException: No AjaxEventBehavior found on
component: email which matches the event: keyup
Is it possible to simulate event with Wicket Tester?