if you want to use global commands, it is possible to use different named queues like <window apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('foo.MyViewModel')" binder="@init(queueName='myqueue')"> and BindUtils.postGlobalCommand("myqueue", EventQueues.DESKTOP, "cmdX", args);
cor3000 ( 2013-09-19 10:59:47 +0800 )editWow. Thanks so much! Mind you without your zk fiddle example I think I still would have been lost. Those docs you posted don't illustrate things as you have in your fiddle example. Because they only allow so few characters for a comment I'll posting one follow up question...
rickcr ( 2013-09-19 16:47:34 +0800 )edit.. things are awesome (thanks to you) the only issue I seem to be having ( hopefully it's just a "duh" moment) but I can't seem to get the context menu to show up on a row when I'm using it on a listitem that is backed by a model. illustrating: http://zkfiddle.org/sample/bdue6a/6-reusable-include-p
rickcr ( 2013-09-19 16:55:19 +0800 )editI'm also curious though.. where in the docs anywhere does it describe what events are possible to forward on a listbox? where you have
listbox forward="onSelect=..." what other events are possible to forward and where do I find them? The Listbox API didn't seem to show an "onSelect" event?
see component reference http://books.zkoss.org/wiki/ZKComponentReference/Data/Listbox#Supported_Events + inherited from XulElement. in general avoid putting too much logic in setters... there should be an event in most cases
cor3000 ( 2013-09-20 22:44:35 +0800 )edit