File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes One h:message per multiple inputs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "One h:message per multiple inputs" Watch "One h:message per multiple inputs" New topic

One h:message per multiple inputs

The David Miller

Joined: Jul 09, 2010
Posts: 3
Hi all,

I have 3 phone number h:inputs that are all required fields (999-999-9999). Is there a way I can use h:message to print out one message if they are all left blank? Instead of having 3 error messages like Enter an area code... Enter phone part 1... Enter phone part 2...

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: One h:message per multiple inputs
It's not a secret anymore!