ADF 11g: FacesContext.addMessage issue
Hi,
I am using ADF 11g. In my application i am throwing some custom error messages, depending on some validations.
Also there is a clear button on form which provides user to clear all the input values.
Now problem is :
Suppose there are 3 input text feilds : A, B, C.
Each feild is having some value.
Validation for InputText B fails and error message is thrown.
the code for error message is :
uIComponent = iptxt_B;
FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR,
+"Large Value",+
+"Please provide Small Value)");+
fc.addMessage(uIComponent.getClientId(fc), message);
Now when i click Clear Button, values in input text feilds : A, B, C gets cleared but
faces error message is still visible.
When i click on the form (anywhere) the error message disappears.
I need to get this error message disappear at same time when values are being cleared. that is on clicking Clear button
Any pointers to solve this issue
Thanks and Regards
Manav Ratra