seam中的<s:validateEquality>标签
来源:互联网 发布:15年广东省的经济数据 编辑:程序博客网 时间:2024/05/01 07:07
Tag to nest inside an input control to validate that its parent's value is equal (or not equal!) to the
referenced control's value.
Attributes
• for — The id of a control to validate against.
• message — Message to show on failure.
• required — False will disable a check that a value at all is inputted in fields.
• messageId — Message id to show on failure.
• operator — What operator to use when comparing the values Valid operators are:
• equal — Validates that value.equals(forValue)
• not_equal — Validates that !value.equals(forValue)
• greater — Validates that ((Comparable)value).compareTo(forValue) > 0
• greater_or_equal — Validates that ((Comparable)value).compareTo(forValue) >= 0
• less — Validates that ((Comparable)value).compareTo(forValue) < 0
• less_or_equal — Validates that ((Comparable)value).compareTo(forValue) <= 0
Usage
referenced control's value.
Attributes
• for — The id of a control to validate against.
• message — Message to show on failure.
• required — False will disable a check that a value at all is inputted in fields.
• messageId — Message id to show on failure.
• operator — What operator to use when comparing the values Valid operators are:
• equal — Validates that value.equals(forValue)
• not_equal — Validates that !value.equals(forValue)
• greater — Validates that ((Comparable)value).compareTo(forValue) > 0
• greater_or_equal — Validates that ((Comparable)value).compareTo(forValue) >= 0
• less — Validates that ((Comparable)value).compareTo(forValue) < 0
• less_or_equal — Validates that ((Comparable)value).compareTo(forValue) <= 0
Usage
<h:inputText id="name" value="#{bean.name}"/><h:inputText id="nameVerification" ><s:validateEquality for="name" /></h:inputText>
0 0
- seam中的<s:validateEquality>标签
- Seam <s:fileUpload>标签的用法
- struts2中的s标签解析
- Struts2中的<s:action>标签
- Struts2中的<s:action>标签
- struts2中的s标签解析
- s标签遍历中的遍历
- struts2中的标签<s:debug></s:debug>
- Struts2标签中的s:if标签判断
- seam中的部分缩写
- Seam 中的事务管理
- seam 中的EntityManager
- struts s标签中的s:select标签用法
- Seam 2.1中的安全升级
- 关于struts2标签中的<s:param />
- struts2中的s:if标签的用法
- 关于struts2标签中的<s:param />
- struts2的s:iterator标签中的status
- linux内核系统调用和标准C库函数的关系分析
- [LeetCode] Plus One
- CF 9A. Die Roll
- Java数组与内存控制
- GStreamer播放教程02——字幕管理
- seam中的<s:validateEquality>标签
- java集合类总结
- 利用Java编写简单的WebService实例
- java文件复制
- RTB, DSP, AdExchange知识点汇总
- Java可以做什么及可以给我们带来什么?
- 日志测试Checklist
- Intel 平台编程总结----缓存优化之数据预取
- 数据记录的操作(insert,select,update,delete)函数和分组查询(group by),表连接(join on),嵌套查询(in)