myContent = new VelocityContainer("closeablewrapper", VELOCITY_ROOT + "/index.html", null, this) {
public void validate(UserRequest ureq, ValidationResult vr) {
super.validate(ureq, vr);
// just before rendering, we need to tell the windowbackoffice that we are a favorite for accepting gui-messages.
// the windowbackoffice doesn't know about guimessages, it is only a container that keeps them for one render cycle
WindowBackOffice wbo = getWindowControl().getWindowBackOffice();
List zindexed = (List) wbo.getData("guimessage");
if (zindexed == null) {
zindexed = new ArrayList(3);
wbo.putData("guimessage", zindexed);
}
zindexed.add(new ZIndexWrapper(guiMsgPlace, 20));
}
};
myContent.put("guimessage", guiMsgPlace);