Hi
I have a
JSF from containing around 10 controls(input, select etc.) .
Now I need to display an error message in case any of the mandatory control has validation error.
Message format would be like
"
Please,Complete the fields marked with yellow!" The message I need to show in a div tag with Yelow background.
Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
My code is below.
[color=red]
[/color]
(JSF1.2,Rich Faces 3.3.0,Facelets )
And a Phase Listener from
http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
This Phase listener is to border the control with Yellow in case validation fail.
Now my Query
1) How can I show a single message for all fields as I marked above in case of validation failure?
2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.
User can move from one control to other using tab. That time proper validation message is appearing.
but the border of the control is not changing to yellow.
What's the correcion can be made to meet that requirement too.
regards
Roy