lehmann at media-interactive.de
Fri May 31 02:51:36 PDT 2013
I created a ticket for this:
On 28.05.2013 19:42, Werner Lehmann wrote:
> just ran into an unexpected feature of the FXML loader. Basically, if
> you have FXML like this...
> <SomeControl onFooChange="#fooChange"/>
> ...it would expect SomeControl to have an observable property "foo".
> Otherwise a javafx.fxml.LoadException is thrown: "SomeControl does not
> define a property model for "foo"."
> Of course I don't have that foo property but still want to name my event
> "FooChange". Actually, FXMLLoader has special code which looks for
> "on*Change" attributes. Event handler attributes with other name
> patterns work. Shouldn't this work for non-existing foo as well?
> See FXMLLoader.Element.addEventHandler...
More information about the openjfx-dev