diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Client.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Client.java index e0eeb0e70527a242d44cbe6fa6df6b4e4c2aedf7..db21eb38bbd98b6466e990efc51e54ca675dc3b8 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Client.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/Client.java @@ -139,7 +139,7 @@ public class Client implements EntryPoint final UrlParamsHelper urlParamsHelper = new UrlParamsHelper(viewContext); urlParamsHelper.initUrlParams(); - final IClientServiceAsync service = viewContext.getService(); + final IClientServiceAsync service = getServiceForRetrievingApplicationInfo(viewContext); service.getApplicationInfo(new AbstractAsyncCallback<ApplicationInfo>(viewContext) { @@ -160,6 +160,12 @@ public class Client implements EntryPoint } }); } + + protected IClientServiceAsync getServiceForRetrievingApplicationInfo( + IViewContext<ICommonClientServiceAsync> context) + { + return context.getService(); + } /** * A version of onModuleLoad specifically for tests. Ignore the state in the session and go directly diff --git a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/PhosphoNetXClient.java b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/PhosphoNetXClient.java index 99f44cc76ba6e58fb17510ef7d8d119b37340419..c5f3b03896bfd1084c8154cd6dbb9d66607b79aa 100644 --- a/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/PhosphoNetXClient.java +++ b/rtd_phosphonetx/source/java/ch/systemsx/cisd/openbis/plugin/phosphonetx/client/web/client/application/PhosphoNetXClient.java @@ -16,6 +16,7 @@ package ch.systemsx.cisd.openbis.plugin.phosphonetx.client.web.client.application; +import ch.systemsx.cisd.openbis.generic.client.web.client.IClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Client; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; @@ -47,4 +48,12 @@ public class PhosphoNetXClient extends Client return new ClientPluginFactoryProvider(commonContext); } + @Override + protected IClientServiceAsync getServiceForRetrievingApplicationInfo( + IViewContext<ICommonClientServiceAsync> context) + { + return new ViewContext(context).getService(); + } + + }