我对XPages很新。首先,我已经下载了一些示例Bootstrap-xpage应用程序。我正在探索的应用程序不依赖于扩展库。
对于下面的代码行,它会抛出错误“未知属性this.attrs。它没有在标记xp上定义:inputText ”
<xp:this.facets>
<xp:panel xp:key="facet_1">
<xp:inputText id="inputSenderName" value="#{mycard.sendername}" required="true">
<xp:this.attrs>
<xp:attr name="placeholder" value="Your Name" />
</xp:this.attrs>
<xp:this.validators>
<xp:validateRequired message="Enter your name"></xp:validateRequired>
</xp:this.validators>
</xp:inputText>
</xp:panel>
</xp:this.facets>
有什么建议吗?
答案 0 :(得分:1)
首先将Domino Designer和Domino升级到非beta版本。 8.5.3 CD4是8.5.3正式发布之前的测试版之一。
最新版本的IBM Domino是9.0.1。
从这个答案可以看出,attrs
属性是在8.5.3中引入的:ReadOnly field in Xpage not submitted