Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSR-303 Validation picks message codes from different locations [SPR-8975] #13615

Closed
spring-projects-issues opened this issue Dec 30, 2011 · 1 comment
Labels
in: core status: bulk-closed

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Dec 30, 2011

Shahed Moolji opened SPR-8975 and commented

I am using JSR 303 annotation driven validations to validate data bindings in my Controller.

For certain annotations like @Size and @NotNull, Spring Form error tags display the error message text from the default messageSource bean.
For others, like @Digits the messages are resolved from ValidationMessages.properties.

This happen irrespective of whether I configure or omit the configuration below in my Web Context.

<bean name="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
	<property name="validationMessageSource" ref="messageSource"/>      
    </bean>

Affects: 3.1 GA

@spring-projects-issues spring-projects-issues added type: bug status: waiting-for-triage in: core and removed type: bug labels Jan 11, 2019
@rstoyanchev rstoyanchev added status: bulk-closed and removed status: waiting-for-triage labels Jan 11, 2019
@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: bulk-closed
Projects
None yet
Development

No branches or pull requests

2 participants