XPages – 禁用Dojo组合框的客户端验证
发布时间:2020-12-16 21:18:03 所属栏目:百科 来源:网络整理
导读:我正在尝试禁用Dojo组合框的客户端验证失败.我添加了一个dojo属性“required”并将其设置为false但这仍然无效.我确实希望启用服务器端验证,这就是我设置required =“true”的原因.任何人都可以看到需要对以下代码进行哪些更改? xe:djComboBox id="djComboBo
我正在尝试禁用Dojo组合框的客户端验证失败.我添加了一个dojo属性“required”并将其设置为false但这仍然无效.我确实希望启用服务器端验证,这就是我设置required =“true”的原因.任何人都可以看到需要对以下代码进行哪些更改?
<xe:djComboBox id="djComboBox1" required="true" disableClientSideValidation="true"> <xe:this.dojoAttributes> <xp:dojoAttribute name="required" value="false"> </xp:dojoAttribute> </xe:this.dojoAttributes> <xp:selectItem itemLabel="" /> <xp:selectItem itemLabel="Apples" /> <xp:selectItem itemLabel="Oranges" /> <xp:selectItem itemLabel="Pears" /> <xp:selectItem itemLabel="Bananas" /> <xp:selectItem itemLabel="Plums" /> </xe:djComboBox> 解决方法
尝试使用始终返回true的方法覆盖组合框的客户端验证公式:
<xe:djComboBox id="djComboBox1" required="true" validatorExt="return true;"> <xp:selectItem itemLabel="" /> <xp:selectItem itemLabel="Apples" /> <xp:selectItem itemLabel="Oranges" /> <xp:selectItem itemLabel="Pears" /> <xp:selectItem itemLabel="Bananas" /> <xp:selectItem itemLabel="Plums" /> </xe:djComboBox> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
热点阅读