现在已经启用了验证器。
Now you can test the validator.
现在您就可以测试确认器了。
Use a text editor and a validator
使用文本编辑器和确认器
Add a simple unit validator method.
添加一个简单的单元确认器方法。
Write a custom validator, of course!
当然是编写一个定制验证器!
How to write custom converters and validator?
如何编写自定义转换器和验证器。
No need for page author to specify validator.
不需要页编写者指定验证器。
Thus, a validator must point out this problem.
因此,一个确认器必须指出这些问题。
To fix this loophole, you'll create a custom validator.
为了修复这个漏洞,您可以创建一个定制的验证器。
You can test the new validator in the runtime environment.
您可以在运行时环境之中测试新确认器。
The next step is to register the validator with the plug-in.
接下来的一步是使用插件注册确认器。
Register your custom validator in the faces-confix.xml file.
在 faces-confix.xml 文件中注册自定义验证。
You must use an appropriate validator for the attribute type.
您必须为属性类型使用一个适当的确认器。
Right now, though, the validator is guessing at this (in most cases).
但是现在,验证器将猜测这一点(在大多数情况下)。
For example: I want to know if a given annotation is a validator.
例如:我想知道,如果给定的注解是一个验证器。
Here's the example code to create a custom validator, step by step.
下面是创建自定义验证器的分步示例代码。
A custom validator can be implemented to obtain a different behavior.
可实现自定义验证程序以获取不同的行为。
After the type library is written, package it for use by the validator.
编写完类型库之后,还要将它们打包,以便验证器使用。
In the samples of this article, Validator is the base of an object hierarchy.
在本文的示例中,Validator是对象层次结构的基础。
Each validator of the hierarchy will need a method to verify a single value.
层次结构中的每个验证器都需要一个方法来验证单个值。
You can now edit the contents of the new validator with your own source code.
现在您可以使用源代码来编辑新确认器的内容。
When you get a response from the Validator, focus on the doctype (see Figure 6).
从Validator获得响应之后,集中处理doctype(参见图6)。
This is because our validator, the program that compares results, is not perfect.
这是因为我们的用于比较结果的判别程序并不完美。
Add this.jar file to the validator's classpath, then run the validator as you normally would.
将这个.jar文件添加到验证器的类路径中,然后像往常那样运行验证器。
Add this.jar file to the validator's classpath, then run the validator as you normally would.
将这个.jar文件添加到验证器的类路径中,然后像往常那样运行验证器。
应用推荐