Ton*_*een 2 dojo lotus-notes xpages
使用Dojo验证文本框时,如果我尝试提交XPage而不在Dojo验证文本框中输入任何值,我会看到消息"此值是必需的".有没有办法自定义此消息?(我希望用另一种语言传达此消息)
您可以将自定义消息定义为dojoAttribute:
<xe:djValidationTextBox
id="djValidationTextBox1"
value="#{viewScope.test}"
required="true">
<xe:this.dojoAttributes>
<xp:dojoAttribute
name="missingMessage"
value="Your customized required message!">
</xp:dojoAttribute>
</xe:this.dojoAttributes>
</xe:djValidationTextBox>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
488 次 |
| 最近记录: |