This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors" Watch "JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors" New topic
Author

JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors

Solomon Gnanadurai
Greenhorn

Joined: May 20, 2011
Posts: 24
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.

Maks Besida
Greenhorn

Joined: May 26, 2011
Posts: 13

Rather good tutorial of pdf handling with JSF. I think this pdf handling tutorial will help you
Solomon Gnanadurai
Greenhorn

Joined: May 20, 2011
Posts: 24
Thanks for your reply.

That was a good post which I already referred to generate the pdf. The solution I am trying to find out is how to skip opening the new window when there are validation errors.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF 1.2 & RichFaces - Open new pdf window based on required field validation errors
 
Similar Threads
Avoid duplicates in RichFaces messages tag
No Required validation in xhtml + JSF
Partial submission/ Bypass validation
Prevent the page refreshing
Communication between browsers