X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms%2Fsrc%2Forg%2Fargeo%2Fcms%2FCmsApplication.java;h=d6341e5b346322311d69d39c7c6fa070c6f1ccaf;hb=1c4c6edab6a863e879678773cb0703dde821b09e;hp=90df56a61a967d65c2c46ab4ba1ee8bb8252b608;hpb=04dade003a08c5915280ae653639b0af7cddeb0c;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms/src/org/argeo/cms/CmsApplication.java b/org.argeo.cms/src/org/argeo/cms/CmsApplication.java index 90df56a61..d6341e5b3 100644 --- a/org.argeo.cms/src/org/argeo/cms/CmsApplication.java +++ b/org.argeo.cms/src/org/argeo/cms/CmsApplication.java @@ -22,6 +22,7 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.argeo.cms.internal.ImageManagerImpl; +import org.argeo.cms.util.CmsUtils; import org.argeo.jcr.JcrUtils; import org.eclipse.gemini.blueprint.context.BundleContextAware; import org.eclipse.rap.rwt.RWT; @@ -147,12 +148,12 @@ public class CmsApplication implements CmsConstants, ApplicationConfiguration, } public void init() throws RepositoryException { - if (workspace == null) - throw new CmsException( - "Workspace must be set when calling initialization." - + " Please make sure that read-only and read-write roles" - + " have been properly configured:" - + " the defaults are open."); + // if (workspace == null) + // throw new CmsException( + // "Workspace must be set when calling initialization." + // + " Please make sure that read-only and read-write roles" + // + " have been properly configured:" + // + " the defaults are open."); Session session = null; try { @@ -317,7 +318,9 @@ public class CmsApplication implements CmsConstants, ApplicationConfiguration, bodyArea.setData(RWT.CUSTOM_VARIANT, CmsStyles.CMS_BODY); bodyArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); - bodyArea.setBackgroundMode(SWT.INHERIT_DEFAULT); + // Should not be set here: it then prevent all children + // composite to define a background color via CSS + // bodyArea.setBackgroundMode(SWT.INHERIT_DEFAULT); bodyArea.setLayout(CmsUtils.noSpaceGridLayout()); refreshBody(); } catch (Exception e) {