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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:04:30+00:00 2026-05-23T14:04:30+00:00

I know the issue is discussed in many posts in the forum, however I’m

  • 0

I know the issue is discussed in many posts in the forum, however I’m still having problems customizing the messages for the bean validation. Maybe some little things missing in configuration or file location…

When the validation call the message, the web page shows the message ID instead of the message text.

For example I see in the web page {messages.myMessageId}

I have:

src/com/myapp/view/validationvalidation_en.poperties

webuser_name_notnull = Name is required

faces-config.xml

<message-bundle>
        com.myapp.view.validation
</message-bundle>

webuser.java

@NotNull(message = "{webuser_name_notnull}")
private String name;

Many thanks for support!

  • 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-23T14:04:31+00:00Added an answer on May 23, 2026 at 2:04 pm

    As per chapter 4.3.1.1 of the JSR303 specification, the custom JSR303 validation messages file needs to have exactly the name ValidationMessages.properties and it needs to be placed in the root of the classpath, in your case thus directly in the src folder.

    Please note that Bean Validation is not part of JSF. It’s part of Java EE of which JSF is also a part. The JSF <message-bundle> only definies the location of JSF default validation messages (such as the one which you see on required="true"), not the JSR303 Bean Validation messages.

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

Sidebar

Related Questions

I know this issue being mentioned before, but resolutions there didn't apply. I'm having
I know there are several threads and posts regarding this issue in the internet
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
I know, that the issue had been widely discussed before, but after 5 hours
I know this has been discussed ad nauseum...but I have an issue with the
I know this issue has been discussed numerous times, but I think this is
I know this is a much discussed topic.. But I am facing an issue
I know that the Hudson vs. CC issue has been beaten (discussed) to death,
I know this issue has been touched on here but I have not found
I know this isn't a unique issue but I've not had much luck finding

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.