Jeff Thomas
11/11/2017, 5:47 PMprivate val fooModel: FooModel by inject()
private val foo: TextField by fxid()
init {
foo.textProperty().bindBidirectional(fooModel.barProperty)
foo.validator {
success("OK")
}
}
Running the app with the validator statement throws an IllegalArgumentException "The addValidator extension can only be used on inputs that are already bound bidirectionally to a property in a Viewmodel. Use validator.addValidator() instead or make the property's bean field point to a ViewModel."
I thought the previous statement did the bidirectional bind. Any tips?