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 No Required validation in xhtml + JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No Required validation in xhtml + JSF