338 total views, 1 views today

Oracle ADF FacesMessage – example

ADF FacesMessage using the standard JSF messaging API to display the message in the page. It supports four types of message boxes, which are Info, Warning, Error, and Severe. The addMessage() method in facesContext displays the message box in the center of the page if its first argument was NULL knows as Global Level Message, or the message displayed near to any of the components in the page known as Component Level Message.

In the following Section, we showed an example of displaying ADF facesmessage on button click both Global level and component level.

Global Level Message

Displays an Info box

 

062816_0455_FACESMESSAG1 Oracle ADF FacesMessage - example

 

Displays a Warning Message

 

 

062816_0455_FACESMESSAG2 Oracle ADF FacesMessage - example

 

Displays an Error Message

 

062816_0455_FACESMESSAG3 Oracle ADF FacesMessage - example

 

Displays a Fatal Message

 

062816_0455_FACESMESSAG4 Oracle ADF FacesMessage - example

 

Component Level Message

Displays a message near to the Input Text component

Below is the JSF content.Contains a inputText and button component.

The first argument of the addMessage() is the client id of the inputText, so the message box displays near to the inputText

 

output:

 

062816_0455_FACESMESSAG5 Oracle ADF FacesMessage - example

 

That’s all. We have completed adf facesmessage. Please share your comments below if you have any questions. 

govindan Oracle ADF FacesMessage - example
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply šŸ™‚
govindan Oracle ADF FacesMessage - example
Connect me
By | 2017-06-11T15:48:17+00:00 June 28th, 2016|Categories: ADF|Tags: , , , , |3 Comments
Like us on Facebook.
Connect!