[Tapestry4] 用validator的name=value[message] ,message在页面为何不显示
shfzhzhr
2008-03-25
我用的是4.1.5版本,以下是页面规范中的配置
<component id="username" type="TextField"> <binding name="value" value="username"/> <binding name="validators" value="validators:required[username required],minLength=6[too short]" /> </component> <component id="password" type="TextField"> <binding name="value" value="password"/> <binding name="hidden" value="true" /> <binding name="validators" value="validators:required[password required],minLength=6[too short]" /> 但是当输入出错只是显示两个*号 不显示我的出错信息 为什么? |
|
tapestry
2008-03-25
设置form的客户验证为true,还不行,用firebug看是不是js加载错误
|
|
eric2002cn
2008-03-29
<component id="regForm" type="Form">
<binding name="listener" value="listener:regSubmit"/> <binding name="clientValidationEnabled" value="true"/> </component> <binding name="displayName" value="literal:【昵称】"/> 在模板里加上Shell如<html jwcid="@Shell" title="aa"> 我以前也遇到这种情况,后来就是这样解决的 |
相关讨论
相关资源推荐
- BootstrapValidator动态修改message消息
- form校验 validator获取不到value
- hibernate-validator自定义注解手动校验(动态message)
- 在前端使用validator来校验组件是否符合要求
- hibernateValidator读取不到CustomValidationMessages.properties文件,jsp页面直接显示错误码
- 参数校验之Hibernate-validator的基本使用
- Hibernate-Validator的使用(一)
- springboot使用hibernate validator校验
- Form表单验证神器: BootstrapValidator常见的坑,input框的value值改变二次验证不了?
- 【async-validator】 在antd组件中使用案例