Jrubyfx: communication between javafx.application and controller

Hi,

I’m working on a project, where you have the following workflow:

there is a scene similar with a login page.

after the user “login”, he fetch some objects from the db and should
iterate through them, rendering it always in the same view. After he
clicked on “next” he should render a new object. Look that I
intentionally
decided to avoid the DSL and I’m using the “load_into” method, because I
have to add some nodes and controll dynamically in my
controller#initialize
method.

I have a gist, here

My questions are:

is that right? Can I keep iterating on a callback as I’m doing or as
soon
as I call MyController.load_into, it will start in another thread and
it’s
gone?

if its wrong, what would be the right pattern to implement it ?