// If we are in partial refresh mode, we assume that they are already loaded
if(AjaxUtil.isAjaxPartialRefresh(context)) {
return;
}
UISametimeClient stClient = (UISametimeClient)component;
// Ensure that the dojo theme is loaded
UIViewRootEx2 rootEx = (UIViewRootEx2)context.getViewRoot();
rootEx.setDojoTheme(true);
// Mark the ST client as enabled
UISametimeClient.enableClient(rootEx, true);
// Find the Sametime Endpoint
String endpointName = stClient.getEndpoint();
if(StringUtil.isEmpty(endpointName)) {
endpointName = EndpointFactory.SERVER_SAMETIME;
}
Endpoint stServer = EndpointFactory.getEndpointUnchecked(endpointName);
if(stServer==null) {