public void updateContents(OmUrlFragment f, AjaxRequestTarget target) {
updateContents(f, target, true);
}
public void updateContents(OmUrlFragment f, AjaxRequestTarget target, boolean updateFragment) {
BasePanel panel = getPanel(f.getArea(), f.getType());
if (panel != null) {
Component prev = contents.get(CHILD_ID);
if (prev != null && prev instanceof BasePanel) {
((BasePanel)prev).cleanup(target);
}
target.add(contents.replace(panel));
if (updateFragment) {
UrlFragment uf = new UrlFragment(target);
uf.set(f.getArea().name(), f.getType());
}
panel.onMenuPanelLoad(target);
}
if (dev != null){
target.add(dev);
}
}