%--
* Licensed Materials - Property of IBM
*
* 5724-U18
*
* (C) COPYRIGHT IBM CORP. 2011,2014 All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with
* IBM Corp.
--%><%@page import="psdi.webclient.system.runtime.WebClientRuntime"%>
<%@page import="com.ibm.tivoli.maximo.asset.ilog.controls.ILogControl"%>
<%
// load the http.using.javascript property
// when this is set, the Applet will use Javascript to communicate with the server
String httpUsingJavascript = psdi.server.MXServer.getMXServer().getProperty("topology.http.using.javascript");
ILogControl ilogcontrol = (ILogControl) control;
String myid = component.getId();
String appId = app.getId();
String width = component.getProperty("width");
String height = component.getProperty("height");
String datasrc = control.getProperty("datasrc");
String rtlDir = BidiUtils.getLayoutOrientation(langcode).equals(
BidiUtils.RTL_DIRECTION) ? "true" : "false"; //bidi-hcg_SC
String bidiEnabled = BidiUtils.isBidiEnabled() ? "true" : "false";
if (component.needsRender()) {
if (!ilogcontrol.getAppletVisible()) {
ilogcontrol.setDataChanged(true);
}
%>
<%
if (ilogcontrol.getAppletVisible()) {
%>
<%
}
} else if (ilogcontrol.getRefreshVisibility()) {
ilogcontrol.setRefreshVisibility(false);
%>
><%="<%="]]>"%>
<%
}
if (ilogcontrol.getDataChanged() && ilogcontrol.getAppletVisible()
&& !component.needsRender()) {
%>
><%="<%="]]>"%>
<%
ilogcontrol.setDataChanged(false);
ilogcontrol.setInitialLoadRequired(false);
}
// last error part
if (!WebClientRuntime.isNull(ilogcontrol.getError())) {
%>
><%="<%="]]>"%>
<%
ilogcontrol.setError(null);
}
%>