First time here? Check out the FAQ!
Hi, I have a parent.zul
and child.zul
. The first one has a combobox
for choosing a movie, for example, and the other has a bandbox
with a listbox
for selecting a room. I'm using <include>
to load the child zul. As you can imagine, each zul has its own viewModel like parentVM
and childVM
. I'd like to pass to child zul the selected movie and use it as a criterion for a query to find which rooms are playing the referred movie. I tried to get the movie with @Init void init(@BindingParam("selectedMovie") Movie selectedMovie)
but it's not working because when the zul are created there is no movie selected. It is possible to do that? Passing an object from a zul to another by executing a method on parentVM?
Hello psinalberth,
You could use the Global Command Binding.
http://books.zkoss.org/zk-mvvm-book/8.0/databinding/globalcommand_binding.html
Best Regards,
Darksu
Thanks Darksu, it worked for me!
Asked: 2016-11-04 18:14:18 +0800
Seen: 50 times
Last updated: Nov 07 '16