With standard security validators (more suitable for editable data validation), it's not possible to check that and you need to create custom validations.
使用标准安全验证器(validator)(更适合用于可编辑数据验证),不可能检查这种情况,你需要自定义验证。
We prefer the latter option because it allows us to simply associate a custom converter (with built-in validation logic) with a specific object type and have JSF handle that object type.
我们偏向后一种方法,因为它让我们可以将自定义转换器(自带验证逻辑)与特定的对象类型相关联,并让JSF处理这种对象类型。
Therefore, you must write the inline custom validation logic as if it were dealing with validation in a custom Validator object.
因此,必须编写嵌入自定义验证逻辑,就像使用一个自定义Validator对象处理验证一样。
Field validation is useful when you need to be concerned with exactly what a customer is entering into a custom field you've defined.
当您需要限定客户在您定义的自定义字段中所输入的内容时,字段验证是非常有用的。
Field validation is useful when you need to be concerned with exactly what a customer is entering into a custom field you've defined.
当您需要限定客户在您定义的自定义字段中所输入的内容时,字段验证是非常有用的。
应用推荐