Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF 11g: FacesContext.addMessage issue

Manav RatraJan 8 2010 — edited Jan 12 2010
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
This post has been answered by Sameh Nassar on Jan 12 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2010
Added on Jan 8 2010
18 comments
7,636 views