尝试在客户端注释中访问编辑模式时出现xpages错误 [英] xpages error when trying to access edit mode in client notes

查看:91
本文介绍了尝试在客户端注释中访问编辑模式时出现xpages错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试打开一些文档.从客户端注释内的viewPanel中获取.该应用程序还可以在网络上运行.

I'm trying to open some doc. from a viewPanel inside the client notes. The application also runs on web.

当我打开文档时.在读取模式下,然后单击编辑"按钮:

When I open the doc. in read mode, and then click the Edit button:

<xp:button value=" Editare" id="buttonEdit"
            rendered="#{javascript:!currentDocument.isEditable()}" >

        <xp:eventHandler event="onclick" submit="true" refreshMode="complete">
            <xp:this.action>
                <xp:changeDocumentMode mode="edit" var="Contr"></xp:changeDocumentMode>
            </xp:this.action>
        </xp:eventHandler>
</xp:button>

我收到以下错误:

例外

java.lang.String与javax.faces.model.SelectItem不兼容

java.lang.String incompatible with javax.faces.model.SelectItem

这仅在Notes客户端中发生.

this it happens only in notes client.

从堆栈跟踪中:

 com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(Unknown Source)
 com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(Unknown Source)
 com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(Unknown Source)
 com.ibm.xsp.renderkit.html_basic.MenuRenderer.encodeEnd(Unknown Source)
 .... .... 

一个接一个地删除连击后,我注意到错误在于此连击,其值为:

After deleting one by one combos, I noticed that the error is at this one, which values are:

var a = [].concat(@Unique(@DbColumn(dbname, "vwA", 0))).sort();
var b = @Unique(@DbColumn(@DbName(),"vwB",0));
return a.concat(b);

任何想法为何/以及如何解决此问题?

Any ideas why/ and how can I fixed this issue?

推荐答案

错误很可能来自您的SSJS变量dbname.请仔细检查将哪个值设置为此变量.

It is very likely that the error comes from your SSJS variable dbname. Please double check which value is set to this variable.

如果dbname字符串而不是数组,则会收到相同的错误java.lang.String incompatible with javax.faces.model.SelectItem.

I get the same error java.lang.String incompatible with javax.faces.model.SelectItem if dbname is a string instead of an array.

这篇关于尝试在客户端注释中访问编辑模式时出现xpages错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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