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>
I get the following error:
Exception
java.lang.String incompatible with javax.faces.model.SelectItem
this it happens only in notes client.
From the stack trace:
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?