i'm trying to make a EventHandler for my FXML based View in my Clojure Projekt. As described here: http://drowsy.de/blog/?p=7 i added in the FXML this
onAction="(use 'ui.listener) (add-tolist-listener event)"
to a button.
But when i launch the application i get following error message:
LoadException Error resolving onAction='(use 'ui.listener)
(add-tolist-listener event)', either the event handler is not in
the Namespace or there is an error in the script.
In ui.listener is the eventhandler
(defn add-tolist-listener [event]
(println "I'm a Button"))
Any idea why this doesn't work? I tried it with this notation
onAction = #add-tolist-listener
and it didn't worked too.
Thanks!