Perfect workaround ! :) Could also be written this way: behavior.setOption("appendTo", Options.asString(JQueryWidget.getSelector(myDialog)));
The #setAppendTo(Component) is a nice idea! I've added an issue so I do not forget: https://github.com/sebfz1/wicket-jquery-ui/issues/278 Thanks & best regards, Sebastien.