Apache Commons Validator
来源:互联网 发布:c语言小写字母转大写 编辑:程序博客网 时间:2024/05/20 08:45
-
- Add an
onsubmit
attribute to yourh:form
tag that calls the JavaScript validation function generated bys:validatorScript
. - Add Commons validators to JSF input components with
s:commonsValidator
and, optionally,s:validatorVar
. - Add an
s:validatorScript
tag at the end of theh:form
tag's body.
- Add an
Apache Commons Validator对JSF页面验证提供了良好的支持和补充,以下为使用小结:
使用范例
Services Provided
Shale provides three JSP tags that let you use the Commons Validator: s:commonsValidator
, s:validatorVar
, and s:validatorScript
. The first two lets you attach a commons validator to a JSF input component and the third generates JavaScript validation code for validating each JSF component that has one or more Commons validators in a particular form. You can attach as many Commons validators to a single JSF input component as you wish.
commonsValidator Attributes
type支持类型
Minlength maxlength creditCard required integer intRange
long float floatRange double doubleRange Date email
mask Byte short url
includeJavaScriptUtilities
文摘来源:
1:http://shale.apache.org/shale-core/tagreference.html#commonsValidator
2:http://shale.apache.org/1.0.4/shale-validator/index.html
- Apache Commons Validator
- Apache Commons Validator 一些内容
- Commons-Validator
- Commons-Validator
- 用commons-validator时java.lang.ClassNotFoundException: org.apache.commons.digester.Rule异常原因
- Jakarta Commons Validator(引用)
- Jakarta Commons Validator(转)
- commons-validator.jar校验
- java.lang.NoSuchMethodError: org.apache.commons.validator.Validator.setParameter(Ljava/lang/String;Ljava/lang/Object;)V解决方法
- 通用验证系统commons-validator
- Jakarta Commons——Validator
- apchae commons-validator 初体验
- Apache Commons
- APACHE COMMONS
- Apache Commons
- Apache Commons
- apache.commons
- Apache commons
- Eucalyputs配置虚拟机网络和启动虚拟机
- 数据结构前言之想
- 【转】IEEE802.1协议族面向的领域(转自wikipedia)
- 利用 Int2Type 进行函数类型切换
- 毕业了
- Apache Commons Validator
- A LNK2005 error occurs when the CRT library and MFC libraries are linked in the wrong order in Visual C++
- tld 文件中的body-context的枚举
- libvirtd远程访问被拒绝原因之一
- commonDialog引发AccessViolationException的一种原因
- 日本语学习网站汇总
- JAVA反射机制
- Linux与FreeBSD系统的十个本质区别
- C++中时间处理