Set ui name in parent of the web entry point.
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 14 Oct 2021 09:12:09 +0000 (11:12 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 14 Oct 2021 09:12:09 +0000 (11:12 +0200)
org.argeo.cms.ui.rap/src/org/argeo/cms/web/CmsWebEntryPoint.java

index 288069bd9de464400c934da1aab14d68a51bd760..b1691cb0536f0d725e5d8217bcb1c60c831b142f 100644 (file)
@@ -114,8 +114,8 @@ public class CmsWebEntryPoint implements EntryPoint, CmsView, BrowserNavigationL
                                                Locale rwtLocale = RWT.getUISession().getLocale();
                                                LocaleUtils.setThreadLocale(rwtLocale);
                                        }
+                                       parent.setData(CmsApp.UI_NAME_PROPERTY, uiName);
                                        ui = cmsWebApp.getCmsApp().initUi(parent);
-                                       ui.setData(CmsApp.UI_NAME_PROPERTY, uiName);
                                        ui.setLayoutData(CmsUiUtils.fillAll());
                                        // we need ui to be set before refresh so that CmsView can store UI context data
                                        // in it.