We're updating the issue view to help you get more done. 

Properly reset the context after constraint validation

Description

Posted here: https://stackoverflow.com/questions/45742578/hibernate-validatevalue-interaction-with-value-extractor

Validator.validateValue does not inject provided value to JavaFX's ObjectProperty and throws ClassCastException. Providing an ObjectProperty as the value to validateValue unwraps the value before attempting to set it.

EDIT: Test case: https://github.com/willieddy/hibernate-javafx-validate-value-test-case

In writing this test case, this bug isn't present in 5.4.1.Final

Environment

Hibernate version 6.0.1.Final, JavaFX version 8.0.101

Status

Assignee

Guillaume Smet

Reporter

William Eddy

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

6.0.1.Final

Priority

Major