Utility.logMessage("DEBUG", this.getClass().getName() + ".renderXML(): Defering to servant render");
}
else {
viewDoc = sessionData.model;
time2 = Calendar.getInstance().getTime().getTime();
XSLT xslt = XSLT.getTransformer(this, runtimeData.getLocales());
xslt.setXML(viewDoc);
xslt.setTarget(out);
xslt.setStylesheetParameter("baseActionURL", sessionData.runtimeData.getBaseActionURL());
if (sessionData.isAdminUser) {
xslt.setStylesheetParameter("ignorePermissions", "true");
}
if (sessionData.customMessage !=null) {
xslt.setStylesheetParameter("customMessage", sessionData.customMessage);
}
xslt.setStylesheetParameter("mode", sessionData.mode);
xslt.setStylesheetParameter("page", String.valueOf(sessionData.currentPage));
if (sessionData.highlightedGroupID != null) {
xslt.setStylesheetParameter("highlightedGroupID", sessionData.highlightedGroupID);
}
if (sessionData.rootViewGroupID != null) {
xslt.setStylesheetParameter("rootViewGroupID", sessionData.rootViewGroupID);
}
else if (sessionData.defaultRootViewGroupID != null){
xslt.setStylesheetParameter("rootViewGroupID", sessionData.defaultRootViewGroupID);
}
if (sessionData.feedback != null) {
xslt.setStylesheetParameter("feedback", sessionData.feedback);
sessionData.feedback = null;
}
if (sessionData.servantMode) {
xslt.setStylesheetParameter("grpServantMode", "true");
}
if (!sessionData.allowFinish) {
xslt.setStylesheetParameter("blockFinishActions", "true");
}
// now handled in the permissions policy
//if (sessionData.blockEntitySelect) {
// xslt.setStylesheetParameter("blockEntitySelect", "true");
//}
try {
//Utility.logMessage("DEBUG", this.getClass().getName()
// + ".renderXML(): grpView=" + runtimeData.getParameter("grpView"));
xslt.setXSL(sslLocation, "main", sessionData.runtimeData.getBrowserInfo());
xslt.transform();
}
catch (PortalException pe){
Utility.logMessage("ERROR", pe.toString(), pe);
if (pe.getCause()!=null){
Utility.logMessage("ERROR", pe.getCause().toString(), pe.getCause());