Hi Sujit
Actually this is more a jQuery UI question than a Wicket jQuery UI one...
It seems to not be shipped out of the box, but if I had to do this, I would go for this add-on:
The way you can use it:
public MyDialog(String id /*, ... */)
{
super(/* ... */);
this.add(new ResponsiveDialogBehavior());
}
static class ResponsiveDialogBehavior extends Behavior
{
public ResponsiveDialogBehavior()
{
}
@Override
public void renderHead(Component component, IHeaderResponse response)
{
super.renderHead(component, response);
JavaScriptResourceReference reference = new JQueryPluginResourceReference(MyDialog.class, "jquery.dialogOptions.js");
HeaderItem headerItem = JavaScriptHeaderItem.forReference(reference);
response.render(new PriorityHeaderItem(headerItem));
}
}
Hope this helps,
Sebastien.