扩展库对话框刷新/缓存问题? [英] Extensions Library Dialog Box refresh / caching issue?

查看:27
本文介绍了扩展库对话框刷新/缓存问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎遇到了扩展库对话框的问题,要么不刷新,要么缓存值.

I seem to be having an issue with the extensions library dialog box either not refreshing or caching values.

请参阅下面非常简化的示例.基本上按钮会弹出一个扩展库对话框.对话框中包含一个以@Unique() 作为其值的计算域.在我们的生产服务器上,按下按钮时不会更新数字.它适用于第一次按下按钮,但后续按下不会更新数字.

Please see the very simplified example below. Basically the button pops up an extension library dialog box. Contained in the dialog box is a computed field with @Unique() as it's value. On our prod server the number is not being updated when the button is pressed. It works on the first button press but subsequent presses do not update the number.

这仅发生在生产中,类似的问题在过去几周才开始出现.它在我们的 Dev 和 QA 服务器上仍然可以正常工作.

This occurs only in production and a similar issue has only started occurring in the past couple of weeks. It still works fine on our Dev and QA servers.

我的管理员联系人现在不在,所以我不知道服务器之间的版本差异,但我会在了解这些信息后发布它们.

My admin contacts are out right now so I don't know the differences in versions between the servers but I will post them when I learn that information.

代码如下:

<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
xmlns:xc="http://www.ibm.com/xsp/custom"
xmlns:xe="http://www.ibm.com/xsp/coreex">
<xp:this.resources>
    <xp:script src="/Validation_SSJS.jss" clientSide="false"></xp:script>
</xp:this.resources>


<xp:br></xp:br>

<xp:br></xp:br>
<xe:dialog id="dlgMsg2" title="Message" style="width:400px;">

   <xp:text escape="true" id="computedField1" value="#{javascript:return @Unique();}">
        </xp:text>


</xe:dialog><xp:br></xp:br>
<xp:br></xp:br>



<xp:br></xp:br>
<xp:button value="Popup Message" id="button1">
    <xp:eventHandler event="onclick" submit="true"
        refreshMode="complete">
        <xp:this.action><![CDATA[#{javascript:var dlg =      getComponent("dlgMsg2");
dlg.show();}]]></xp:this.action>
    </xp:eventHandler></xp:button>
</xp:view>

更新:该问题在 IE 和 Firefox 中都发生,因此它似乎与浏览器无关.我猜这也不是 Pistolstar 相关的,因为我之前在 PS 和 Xpages 上遇到过问题.Pistolstar 发现了这个问题,当我得到更多细节时,我会更新我以前的帖子

Update: The issue is occurring in both IE and Firefox so it does not appear to be browser related. I am guessing it is not Pistolstar related either as I had a previous issue with PS and Xpages. Pistolstar has discovered that issue and I will update my previous post when I get more details

更新:我检查过,我们的 QA 和 Prod 服务器的扩展库版本为 8.5.3.20111208-0717.

Update: I checked and our QA and Prod servers are have version 8.5.3.20111208-0717 of the extension library.

推荐答案

我想出了一个解决方法"来解决这个问题.我为对话框的 onShow 事件添加了刷新事件处理程序.

I came up with a "workaround" to fix this issue. I added a refresh event handler for the onShow event of the dialog box.

<xe:dialog id="dlgMsg2" title="Message" style="width:400px;">
        <xp:text escape="true" id="computedField1" value="#{javascript:return @Unique();}">
        </xp:text>


    <xp:eventHandler event="onShow" submit="true"
        refreshMode="partial" refreshId="computedField1">
    </xp:eventHandler></xe:dialog>

了解潜在问题仍然很有趣.

It would still be interesting to know the underlying issue.

这篇关于扩展库对话框刷新/缓存问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆