* <p>
* @param context
* @param component
- * @param value
- * <p>
+ * @param value <p>
* @throws ValidatorException
*/
@Override
* component's id has been found, it stops iteration on requiredFields
* (which saves execution time).
* <p>
- * @param context FacesContext instance
- * @param component UIComponent instance
- * @param value Value to check
+ * @param context FacesContext instance
+ * @param component UIComponent instance
+ * @param value Value to check
* @param requiredFields Array of required field names (ending with)
- * @param allowNull Wether null or empty values are allowed
+ * @param allowNull Wether null or empty values are allowed
* <p>
* @throws ValidatorException If something more horrible went wrong
*/
// Debug message
//this.getLogger().logDebug(MessageFormat.format("preValidate: isValidField={0}", isValidField)); //NOI18N
+
// Valid field?
if (!isValidField) {
// Invalid field
- facesMessage = new FacesMessage(MessageFormat.format("Valure {0} for clientId={1} is not valid/unexpected.", value, clientId)); //NOI18N
+ facesMessage = new FacesMessage(MessageFormat.format("Value {0} for clientId={1} is not valid/unexpected.", value, clientId)); //NOI18N
}
// Debug message
//this.getLogger().logDebug(MessageFormat.format("preValidate: facesMessage={0}", facesMessage)); //NOI18N
+
// Is it not null?
if (null != facesMessage) {
throw new ValidatorException(facesMessage);
// Trace message
//this.getLogger().logTrace("preValidate: EXIT!"); //NOI18N
}
+
}