Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No Required validation in xhtml + JSF

 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gabriel Claramunt
Ranch Hand
Posts: 375
Monad Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
immediate="true" skips the validation step. Look at the JSF lifecycle.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gabriel Claramunt:
immediate="true" skips the validation step. Look at the JSF lifecycle.


Yeah its working fine now.

Rgds,
Naseem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic