我有一个奇怪的问题。
我有一个带有重复控件的 XPage,其中数据源是一个视图。此视图按类别名称过滤。XPage 中有一个带有以下脚本的按钮:
doc = session.getCurrentDatabase().createDocument();
doc.replaceItemValue("form", "myForm");
doc.replaceItemValue("docId", "myID");
doc.save();
该按钮在重复控件上进行部分刷新,但始终在第一次单击按钮时(打开 XPage 后)不会刷新重复器。第二次单击按钮后,我可以看到两个新文档。
当我从视图中删除文档时,我遇到了同样的问题,但在这种情况下,我收到以下错误消息:
javax.faces.el.PropertyNotFoundException: Error testing property 'label' in bean of type null
Error testing property 'label' in bean of type null
任何想法如何重新加载重复控件会更好(没有错误)?