All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.org.richfaces.length-validator.js Maven / Gradle / Ivy

There is a newer version: 4.3.7.Final
Show newest version
RichFaces.csv.addValidator({"length":
	(function(rf) {
		return function (componentId, value, params) {
			if (params.maximum && value.length > params.maximum) {
				throw rf.csv.getMessage(params.customMessage, 'LENGTH_VALIDATOR_MAXIMUM', [params.maximum, componentId]);
			}
			if (params.minimum && value.length < params.minimum) {
				throw rf.csv.getMessage(params.customMessage, 'LENGTH_VALIDATOR_MINIMUM', [params.minimum, componentId]);
			}
		}
	})(window.RichFaces || (window.RichFaces={}))
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy