When use Ajax with wicket you have to set the the component to output it’s markup id or else wicket framework complains about not having it set.
Only the targets needs the setOutputMarkupId(true). So if the component is Ajax driven than only setOutputMarkupId(true) is required.
Example: here this view will get populated by using ajax call back function.
WebMarkupContainer view = new WebMarkupContainer(“view”);