Hi All, We are facing some issues related the client side validation error messages.
Let's say we have two text boxes a1 and a2 in an xhtml file 1. a1 has client side validation 2. a2 has server side validation User fills in correct data in a1 and wrong data in a2 and submits the request. Server side validation for a2 render appropriate error message on the page. Now, the user inputs correct data in a2. But he decides to change the data for a1. This time s/he accidentally enters wrong data in a1 and submits the request. Result: The faces message box/control is updated with the error for a1 due to client side validation along with the previous error message for a2 as well. Actually, the request never reached the server due to client side validation on the a1 text box getting evaluated prior to sending the request. And hence, the earlier server side validation message is also retained and shown on the page. This can be confusing for the end user as a2 has correct data. Our application uses Trinidad 1.2.12. We would like to flush server side faces message, whenever user re-submits with correct value in a2, such that previous messages are not retained and shown. How we can achieve this? Is there a way to to clear the faces messages on clicking submit button by programatically calling any Trinidad JavaScript API? -- Thanks, Anand

