复制本地副本后无法保存xpages部分刷新 [英] xpages partial refresh can't save after replicate local replica

查看:118
本文介绍了复制本地副本后无法保存xpages部分刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:

  1. 用于在网络浏览器中进行编辑的用户预览xpage.
  2. 开发人员将本地副本复制到服务器.
  3. 用户单击保存"按钮并触发保存操作的部分/全部刷新

在8.5.2崩溃时,基于找不到Java设计类的整个数据库.在8.5.3中,没有产生任何错误的CS/SS,但没有对文档进行任何更改.好像您复制了sessionID一样.有没有办法修复/检测它?

有什么想法吗?

thx

解决方案

它与以下效果有关:Refresh entire application when design changes"来控制它-将其关闭(此版本以来为默认值)只会软重置" XSP引擎.

无论如何,您可能会丢失一些作用域变量和bean.总结出一些要遵守的规则:

  • 不允许开发人员在工作时间内更改生产中的设计.
  • 向用户通知该问题( onError事件进行部分刷新)-蒂姆(Tim)的评论解释说,不幸的是,在设计更改后,部分刷新不会导致错误.简单的CSJS代码ping应用程序可用性并在应用程序不响应时报告问题可能可行,但我不建议这样做:我们使用ExtLib的保持活动"控件,而domlog.nsf中的故障排除成为噩梦-它充满了pings (几乎所有时间-许多用户都在夜间打开浏览器).

  • 如果数据非常重要,请实现类似于Google应用的自动保存机制.

顺便说一句:这种效果类似于超时的会话-部分刷新将失败,并且用户需要重新加载页面(并可能进行宽松的编辑).

Scenario:

  1. User preview xpage for editing in web browser.
  2. Developer replicate a local replica to the server.
  3. User click save button and trigger save action partial/full refresh

In 8.5.2 crash the whole database based on can't find java design classes. In 8.5.3 no error CS/SS accrued but there are no changes applied to the document. Seems like if you replicate the sessionID is overridden. Is there a way to fix/detect it?

Any ideas?

thx

解决方案

It relates to this effect: Meaning of java.lang.ClassCastException: someClass incompatible with someClass.

Simply said, every design change resets XSP engine. Since 8.5.3 you can control it by property "Refresh entire application when design changes" in XPage properties - turning it off (default since that version) will just "soft reset" XSP engine.

Anyway, you may loose some scoped variables and beans. This concludes to some rules to obey:

  • Do not allow developers to change design in production during working hours.
  • Notify users about the problem (onError event for partial refresh) - Tim's comment explains, that you won't get an error from partial refresh after design change, unfortunately. Simple CSJS code pinging app availability and report problem when app does not respond could work, but I don't advise that: we use "keep alive" control from ExtLib, and troubleshooting in domlog.nsf became a nightmare - it is full of pings (almost all the time - many users keep their browsers open overnight).

  • If data are very important, implement auto save mechanism similar to Google apps.

BTW: This effect is similar to time-outed session - partial refreshes will fail and user need to reload the page (and possibly loose edits).

这篇关于复制本地副本后无法保存xpages部分刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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