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 7500665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:15:38+00:00 2026-05-29T20:15:38+00:00

In Java Bean Validation (JSR 303), is there a way to programmatically (dynamically) add

  • 0

In Java Bean Validation (JSR 303), is there a way to programmatically (dynamically) add constraints in the code before the validate method is called (in addition to the constraints declared as annotations in the bean)?

  • 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-29T20:15:39+00:00Added an answer on May 29, 2026 at 8:15 pm

    The specification says

    This JSR defines a metadata model and API for JavaBean validation. The default metadata source is annotations,
    with the ability to override and extend the meta-data through the use of XML validation descriptors.

    so I guess if any programmatic configuration exists, it is implementation specific and thus nonportable.

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

Sidebar

Related Questions

In the java world there is the bean validation framework JSR-303 which is a
I was looking for some utility class/code that would take a java bean and
I want to add validations to a Java Bean. For example, I want to
Is there a way to easily generate java beans given a vector in clojure?
The JSR303 Bean Validation implementation Hibernate-Validator (4.1.0) provides the org.hibernate.validator.constraints.ScriptAssert annotation. I get it
There is a Java bean object which has implemented equals function based on certain
Do you bother initialising java bean values? Say, for example: ([g|s]etters omitted) public class
Say I have the following simple java bean: class MyBean { private Date startDate;
consider a JSF web application with a managed bean FooBean.java. I've declared this FooBean
I'm currently trying to construct a list of bean classes in Java from a

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.