Abigail Ames

Greenhorn
+ Follow
since Nov 03, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Abigail Ames

Hi,
I am using RichFaces and JSF 1.2. I have a data entry form with multiple required inputs. Each input has the required property set to true and has its own rich:message tag so that the user sees the message right next to the input on validation failure. I also have a rich:messages tag at the top of the form for summary message display. I've overridden the default validator messages as follows:

javax.faces.component.UIInput.REQUIRED=Please enter values for all required fields
javax.faces.component.UIInput.REQUIRED_detail=Value is required

So here is my question: is there a way to avoid duplicate messages in the rich:messages display? Right now if I have multiple required field valdiation failures, my summary message is repeated for each control. I realize that there are probably many workarounds, but I'm trying to make as much use as I can of the built in validator functionality.

Thanks for your time.
13 years ago
JSF