I am using JSF messages to display error / warning / info messages in my web application. I also use <p:messages> to display them in a browser with different styles.
However, I need to create a new style for some of my posts, keeping the rest as it is now. In other words, I need to create ok severity for my JSF messages that will display information in a green tick field.
Although I studied library classes, it seems that this is not a direct way to achieve this. FacesMessages$Severity are stored in the FacesMessages$Severity class as an enumeration and have a private constructor. Do I need to override the source code directly?
Xtreme biker
source share