• Post Reply Bookmark Topic Watch Topic
  • New Topic

required fields validation problem

 
Sushma Sharma
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestion on how to bypass the fields required check for the links and one of the button?

<h:commandButton immedidate="true"......
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!