Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
xpages使用默认值绑定字段_Xpages - Fatal编程技术网

xpages使用默认值绑定字段

xpages使用默认值绑定字段,xpages,Xpages,有一个inputText,它使用javascript添加了属性 我希望此字段也绑定到表单字段 如何实现这一点?您需要将“值”切换为“默认值”,并将字段绑定到“值” <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.data> <xp:dominoDocument var="d"></xp

有一个inputText,它使用javascript添加了
属性

我希望此字段也绑定到表单字段

如何实现这一点?

您需要将“值”切换为“默认值”,并将字段绑定到“值”


<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:this.data>
    <xp:dominoDocument var="d"></xp:dominoDocument>
</xp:this.data>
<xp:inputText id="inputText1" value="#{d.fld}">
    <xp:this.defaultValue><![CDATA[#{javascript:"default value"}]]></xp:this.defaultValue>
</xp:inputText>