Closed mmoyles87 closed 9 years ago
Hello, it is a problem of initialization order. Because of view controller will initialize the sfxml class, it is not available at instantiation of ParametersFxml.
I prefer to register the validator in the viewcontroller.
override def didGainVisibilityFirstTime() {
super.didGainVisibilityFirstTime()
registerValidator(Validator.createEmptyValidator("Text is required"),Some(ui.txtBrineQMaxMin), true)
}
Greetings,
Tom
Good morning nova999, before i removed the direct dependency of scalafx in sapphire-core there was some experimental support of using sfxml. It was possible to integrate, but there were a lot of problems working with it. Code completion for properties in the IDE was gone, the code was harder to read and as main point sfxml had to little advantages. scalafx can operate without any boilerplate code because of implicit conversion from javafx to scalafx. Also using scala 2.13 and and Java 11+ makes the advantages of scalafx a little bit smaller. imho there is no really need of using sfxml. Have a nice coding time,
Tom
It seems that I can't access my view controller right away in the Fxml wrapper class
Any ideas?