If you specify an id for each input component, then each of those
messages will become more meaningful by showing the id for which field
they apply to.

Alternately, you can provide a label component for each field, and use
the t:messages.   The tomahawk version of messages will use the label
instead of the id if the label is specified.

On 3/23/06, Krause, Nico <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have a form with several input elements with required=true for the
> build-in required validation.
> I turned global messages on under the form.
>
> <h:messages styleClass="errorText" globalOnly="false" />
> The thing i don't like is:
> When there are more then one orm fields which are'nt filled out.
> i get duplicate validation messages like:
>
> * "input field must be filled"
>
> * "input field must be filled"
>
> * "input field must be filled"
>
> * "input field must be filled"
> ...
>
> Does anybody know how to prevent this?
> Do i have to make a new renderer for the messages? is that a good idea?
>
> Nico
>
>
>
> Nico Krause| Software Development| TomTom WORK | [EMAIL PROTECTED] |
> +49 (0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax |
> www.tomtomwork.com
>

Reply via email to