MAF: Validation in Require Field
来源:互联网 发布:mysql时间带毫秒 编辑:程序博客网 时间:2024/05/03 13:27
本文介绍了在MAF page中做验证
在表单提交之前,通常要对表单进行验证,跟JS表单验证是一个道理。
<amx:validationGroup id="vg1"> <amx:panelFormLayout id="pfl1"> <amx:inputText value="#{bindings.country_id.inputValue}" label="#{bindings.country_id.hints.label}" id="it3" required="true" showRequired="true" /> <amx:inputText value="#{bindings.country_name.inputValue}" label="#{bindings.country_name.hints.label}" id="it2" required="true" showRequired="true" /> </amx:panelFormLayout></amx:validationGroup> <amx:commandButton actionListener="#{bindings.updateLocRecord.execute}" text="Update" disabled="#{!bindings.updateLocRecord.enabled}" id="cb3"> <amx:validationBehavior id="vb1" group="vg1"/> </amx:commandButton>加上如上的验证后,可以在提交之前做非空的验证。
0 0
- MAF: Validation in Require Field
- Validation of basic field types in a user profile form
- Field Content Validation
- Field.Text AND Field.Keyword in Lucene
- use vs require in Perl5
- library() vs require() in R
- Validation expression in ASP.NET
- Better form validation in Flex
- ASP.NET Validation in Depth
- Perform Input Validation in WCF
- Cross Validation in machine learning
- Fill input field in IE
- Bear in the Field CodeForces
- Disable XML validation in Eclipse - 解决validation xml慢问题
- Harmfull Plagiarism in Academic Field in China
- Field error in object 'xxx' on field 'XXX': rejected value [];
- require, define and parse in the Dojo
- require(): open_basedir restriction in effect. File
- 常用sql
- 查最近几天时间
- Java中ArrayList和LinkedList区别
- 20个你该知道的职场潜规则
- 基于hadoop搜索引擎实践——总体概述(一)
- MAF: Validation in Require Field
- 关于学生工作的一些看法
- 苹果公司开发者账号注册流程详解
- bzoj 1026 windy数(数位DP)
- Oracle的锁表与解锁
- JQuery.Ajax()的data参数类型
- jplayer播放器完整标准的写法应该是这样的
- 【有上下界最大费用可行流】HDU-4862 Jump
- 一个事务包含多个存储过程,经测试如果出现异常绝对可以回滚到起点