部分刷新时运行时错误

Bru*_*ski 1 xpages

我需要部分刷新多个组件,如下所示:

http://xpageswiki.com/web/youatnotes/wiki-xpages.nsf/dx/Work_with_events_and_partial_or_full_refresh

所以我想我只用一个组件就可以从小处开始并放置代码:

XSP.partialRefreshPost("#{txtProductType}");
Run Code Online (Sandbox Code Playgroud)

在客户端单击单选按钮组的事件.显示页面时,我得到:

The runtime has encountered an unexpected error.
Run Code Online (Sandbox Code Playgroud)

知道我做错了什么吗?

Per*_*ten 11

XSP.partialRefreshPost方法需要客户端ID和可选参数.所以在你的情况下,正确的语法是:

XSP.partialRefreshPost("#{id:txtProductType}", {});
Run Code Online (Sandbox Code Playgroud)

  • 这种方法在8.5.3中有所改变; 之前没有要求第二个参数. (4认同)