It's not a secret anymore!*
The moose likes JSF and the fly likes No Required validation in xhtml + JSF 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 "No Required validation in xhtml + JSF" Watch "No Required validation in xhtml + JSF" New topic
Author

No Required validation in xhtml + JSF

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi, I am using JSF with xhtml files. I am not able to perform validation on the form fields in JSF.

In my xhtml file , this is what I have written.



why there is no required validation when I submit the form. required attribute is set to true in the html text field.

Warm Regards,
Naseem Khan


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Gabriel Claramunt
Ranch Hand

Joined: May 26, 2007
Posts: 375
immediate="true" skips the validation step. Look at the JSF lifecycle.


Gabriel
Software Surgeon
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Originally posted by Gabriel Claramunt:
immediate="true" skips the validation step. Look at the JSF lifecycle.


Yeah its working fine now.

Rgds,
Naseem
 
wood burning stoves
 
subject: No Required validation in xhtml + JSF
 
Similar Threads
Action Event
javascript with JSF???
JSF View
Why can't I see my validation errors?
How to use dynamic file as welcome-file-list in web.xml