| |||||||
FRAMES NO FRAMES |
<%@ taglib prefix="mcv" uri="http://myfaces.apache.org/commons/validators" %>
<anyxmlelement xmlns:mcv="http://myfaces.apache.org/commons/validators" />
MyFaces subproject that contains validator to be used with any JSF 2.0 implementation.
Tag Library Information | |
Display Name | Myfaces Commons Validator Tag Library 2.0. |
Version | 1.1.7 |
Short Name | mcv |
URI | http://myfaces.apache.org/commons/validators |
Tag Summary | |
validateCSV | Validation by validating comma separated values individually. |
validateCompareTo | Validates this component against another component.
Specify the foreign component with the for={foreign-component-id} attribute. Valid operator attribute values:
If the comparator attribute is specified, the component values are compared using the specified java.util.Comparator object. If no comparator is specified, the component values must implement Comparable and are compared using compareTo(). If either value or foreign value does not implement Comparable and no Comparator is specified, validation always succeeds. Put this validator on the bottom-most component to insure that the foreign component's value has been converted and validated first. However, this validator will attempt to convert and validate the foreign component's value if this has not already occurred. This process may not be identical to the standard JSF conversion and validation process. The validation error message key is currently hardcoded as "{0} value <{1}> must be {2} {3} value <{4}>" where
The alternateOperatorName attribute can specify a custom operator name. For example, use "after" instead of "greater than" when comparing dates. The message attribute can specify an alternate validation error message key. For example, use "{0} must be {2} {3}" to remove values from the message. Known issues:
|
validateCreditCard | A custom validator for creditCards, based upon Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions |
validateRegExpr | A custom validator for reg. expr., based upons Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions. |
validateUrl | A custom validator for url format, based upons Jakarta Commons. |
validateEmail | A custom validator for email address format, based upons Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions. |
validateISBN | A custom validator for isbn codes, based upons Jakarta Commons. |
validateDateRestriction | Validate that the date entered is within a given restriction. Handles setting a Validator instance on a EditableValueHolder. Will wire all attributes set to the Validator instance created/fetched. Uses the "binding" attribute for grabbing instances to apply attributes to. Will only set/create Validator is the passed UIComponent's parent is null, signifying that it wasn't restored from an existing tree. |
| |||||||
FRAMES NO FRAMES |