I am new to this field.
I do not know whether the Primefaces have the in-build support to prevent the below listed attacks or not.
Cross-Site Scripting (XSS).Cross-Site Request Forgery (CSRF).Unvalidated Redirects and Forwards.Broken Authentication.
If not, Then what to do to prevent the attacks.