To register a custom validator on a component:
A dialog appears for you to enter the identifier (ID) of the custom validator as it is registered in the application.
This inserts the f:validator
tag in the page.
A dialog appears for you to enter the name and value of the component attribute to set. Click Help if you need information about using the dialog.
<h:inputText id="name"
value="#{MyBean.name}"
size="10" ... >
<f:validator validatorId="customValidator" />
<f:attribute name="someName" value"someValue" />
</h:inputText>
About Custom JSF Validators
Registering a Custom Converter or Validator in an Application
Referencing A Bean Method That Performs Validation
Registering a Standard Validator on a Component
Copyright © 1997, 2004, Oracle. All rights reserved.