JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors
posted 4 years ago
I have a CustomerInfo form with UI fields required=true and few command buttons. When clicking one of the command buttons I am calling backing bean method to create a pdf and to open it in a new window which is working fine. But when no values are entered in the required fields, it still opens a new window with CustomerInfo form re-rendered along with <h:messages> (required field messages).
I dont want to open a new window when there are validation errors.
I am using JSF 1.2 Facelets and RichFaces 3.3 in my project.