0

Dynamic created grid onDrop Event

asked 2011-09-07 13:22:07 +0800

TheAce gravatar image TheAce
69

I followed the guide to do a Dynamicly created grid...

Unfotunately I am not able to call my Composer java fonction for a "onDrop"

I've tried to use the following ...

http://books.zkoss.org/wiki/ZK_Developer's_Guide/ZK_in_Depth/Zscript,_java,_EL/event_handler

my cell.zul is :

<cell forEach="${arg.items}" rowspan="${each.rowspan}" colspan="${each.colspan}" draggable="${each.drag}" droppable="${each.droppable}" zclass="${each.zclass}" forward="window.onDrop()" >
<label value="${each.value}" />
</cell>

my main window in index.zul is called <window id="window" ...?

Any idea how this can be done ? :S

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-09-07 13:27:57 +0800

TheAce gravatar image TheAce
69

I found that that should be used with "use='theClass...'" which I do not use.. but for me I want to be able to call a java function of my ViewControllerClass(or object actually) which is set by

<window id=.. apply="com.myViewControllerClass">

....

link publish delete flag offensive edit

answered 2011-09-07 15:57:16 +0800

TheAce gravatar image TheAce
69

Found the issue, the forward must have onDrop=onMove...

after the = it must start with onTHENSOMETHING

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-09-07 13:22:07 +0800

Seen: 263 times

Last updated: Sep 07 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More