Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6619355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:57:23+00:00 2026-05-25T20:57:23+00:00

I have some questions about Bean Validation and JSF validation, currently I am using

  • 0

I have some questions about Bean Validation and JSF validation, currently I am using Bean validation:

  1. With the JSF validation, the validation works client side only, no request sent to server, and Bean validation works on server?
  2. If javascript is disabled are both will work JSF & Bean Validation, or only bean validation?
  3. What are the disadvantages of Bean validation if there are any?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:57:24+00:00Added an answer on May 25, 2026 at 8:57 pm
    1. That is not true. The validations are applied during the jsf life cycle by Process Validations.

      “Conversion and validation occurs when the JSF runtime calls the
      processValidators() method on each component in the view hierarchy.
      The processValidators() method will first initiate any data conversion
      that is required before validating the components value against the
      application’s validation rules. If there are any errors during the
      conversion or validation process the component is marked invalid and
      an error message is generated and queued in the FacesContext object.
      If a component is marked invalid, JSF advances directly to the render
      response phase, which will display the current view with the queued
      validation error messages. If there are no validation errors, JSF
      advances to the update model values phase.” – johnderinger.wordpress.com

      You can also find this information in the specification.

    2. Both work without javascript.

    3. This is more a question of programming style. I think validation is better made ​​in the model than in the view, because it removes logic from the view and it is more DRY (don’t repeat yourself). If you use a bean multiple time, you will have to write the validation only once with bean validation. You should also know that bean validation overwrite constraints in JSF.

      More information how to use bean validation, you can find here and the specification here.
      For more information about the integrated JSF validation, you should visit this site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some questions about using MySQLi queries, and related memory management. Suppose I
I have some questions about basic CSS that I was unable to understand or
I have some questions about customers about NF mode for DB2. Google had very
I have some questions about multi-threaded programming and multi-core usage. In particular I'm wondering
I have some questions about logging, more specifically about setting it up and making
I have some questions about Perl's map function. Specifically: How does %hash = map
I have some questions about partitioning and strategy, how and when to use it.
i have some questions about constructors in ColdFusion : must i use the name
I have some questions about the default values in a function parameter list Is
I have some questions about vector in STL to clarify..... Where are the objects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.