File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes required fields validation problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "required fields validation problem" Watch "required fields validation problem" New topic
Author

required fields validation problem

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi group,

I have a page where all the fields are required. This page also has two buttons and some command links. All these links and buttons point to different methods in the backed bean.
My requirement is that all these fields should be validated on clicking a particular button only. The problem is that if I click of any of the buttons or the command link without selecting or filling all of the fields, the page just refreshes, I don't even get any message that the required field is missing. If I make required=false for these fields, everything works fine.
Any suggestion on how to bypass the fields required check for the links and one of the button?

Regards,

Sushma
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Any suggestion on how to bypass the fields required check for the links and one of the button?

<h:commandButton immedidate="true"......


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: required fields validation problem
 
Similar Threads
validation in radio buttons
results in same page not working
intermediate submit and validation of a form
Partial submission/ Bypass validation
validation particular fields for different actions in a single page