[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: FXMLLoader assumptions...
From:       Werner Lehmann <lehmann () media-interactive ! de>
Date:       2013-05-31 9:51:36
Message-ID: 51A872A8.7050306 () media-interactive ! de
[Download RAW message or body]

I created a ticket for this:
https://javafx-jira.kenai.com/browse/RT-30837

On 28.05.2013 19:42, Werner Lehmann wrote:
> Hi,
>
> 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...
>
> Werner

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic