The faces message component is used to show confirmation, warning or informational message in Oracle ADF. In this tutorial, you will see that how to use FacesMessage component to show Multiline Message. Sometimes we need to show multiline message then how can we implement this?
this is same as FacesMessage implementation, you should know that af:messages support HTML formatting, so we use HTML formatting to show multiline messages
Learn more about FacesMessage and inline message
Managed bean code to show multiline message in ADF using FacesMessage–
To use for Error and Warning just change FacesMessage.SEVERITY_INFO to SEVERITY_ERROR or SEVERITY_WARN.
It will look like this
You can change your Message accordingly
you can also use some HTML styles (CSS) to change color of text that appears in the message body, see the changed code
now see the FacesMessage look like this-
Happy Learning 🙂 Download Sample App
An Oracle ACE, Blogger, Reviewer, Technical Lead working on Oracle ADF