o
Tag validateCustom


The CustomValidator component allows you to write custom code to validate a value. The code is written in JavaScript on the client side and in Java on the server side.


Tag Information
Tag Classorg.openfaces.taglib.jsp.validation.ValidateCustomJspTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredBinding TypeELDefaultDescription
clientFunctionfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
truenullJavaScript code returning a boolean value ("true" for the valid value). The following variables are available: input - the DOM element for which the validator was specified; value - the value of the element to validate.
detailfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
true"validation error in input ''{0}''"A detailed description of a validation error. The default value is specified in the OpenFaces Message Bundle.
serverFunctionfalsejavax.el.MethodExpression
(signature must match boolean customValidatorTest(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object))
onlynullThe method to validate the value on the server. The following variables are available: context - FacesContext; component - validated component; value - a validated value. The code must return a boolean value ("true" for the valid value).
summaryfalsejavax.el.ValueExpression
(must evaluate to java.lang.String)
true"Validation Error"A summary description of a validation error. The default value is specified in the OpenFaces Message Bundle.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.