1

我正在使用示例“Module_21_-_Form_Based_Authentication”(可在IBM 入门网站上获得)

在此示例中,保护位于适配器 (DummyAdapter.xml)

<procedure name="getSecretData" securityTest="DummyAdapter-securityTest"/>

我想对应用程序进行保护。为了做到这一点,我在 application-descriptor.xml 中有以下行

<common securityTest="DummyAdapter-securityTest"/>

使用 Worklight v5.0.5 evrything 可以完美运行,但使用 Worklight v5.0.5.1 我有一个问题。登录表单未正确显示(不透明度),“正在加载”仍然可见。

<div id="WLbusyContainer">
     <div id="WLbusyOverlay"></div>
      <div id="WLbusy" style="left: 695.5px; top: 218px;">
     <h1 id="WLbusyTitle">Loading</h1></div>
</div>
4

1 回答 1

0

当显示忙碌指示符(“正在加载...”)时,会显示不透明度,实际上是应用程序上的覆盖。在 v5.0.5.1 中,忙指示符有一些不幸的错误。即将发布的 v5.0.6 中进行了修复,它还解决了始终显示忙碌指示器的问题。

作为同时的解决方法,您可以在 yourApplication\common\js\initOptions.js 中将 connectOnStartup 设置为“false”

或者,您可以将 connectOnStartup 保持为“true”,并在 wlCommonInit 中尝试以下操作:

setTimeout(function(){
   WL.Client.__hideBusy();
}, 500); 
于 2013-03-14T17:04:15.220 回答