I have a simple form with a bunch of fields. each of them is required, and each has a different name:
- city
- state
when the form is submitted i check if each field is empty and add a unique message for each validation to the context like:
- city is required
- state is required
i cant simply use the required=true attribute on the jsp because the message will be generic and this is not what is needed.
I am fairly new to jsf, so please tell me of a better way to do this?