Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.2.6, 1.3.0-beta1
-
None
Description
The javadoc for wicket.util.tester.WicketTester.assertComponentOnAjaxResponse makes this statement:
"This method doesn't actually insert the component in the client DOM tree, using javascript. But it shouldn't be needed because you have to trust that the Wicket Ajax Javascript just works."
Turns out that there is another way to have the component replacement fail, which is to forget to setOutputMarkupId(true) or to setVisible(false).
I propose to improve this method to at least check that the component's markup id made it into the page, or at least that the component isOutputMarkupId and isVisible.