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对象处理验证一样。
应用推荐