users@javaserverfaces.java.net

Custom validation message for required fields

From: Uwe Seimet <Uwe.Seimet_at_seimet.de>
Date: Sun, 20 Jul 2008 11:40:13 +0200

Hello!

My application has several required text input fields and I would like
to display different validation error messages for each (empty) field.
Assigning to the javax.faces.component.UIInput.REQUIRED property changes
the validation error message only on a global scope.
Do I have to write a custom validator for each required input field in
order to provide a different error message for each field or is there an
easier way to solve this?

Best regards Uwe

-- 
-----------------------------------------------------------------------
  Dr. Uwe Seimet                                http://www.seimet.de/