> Your ajax event handler method will need to initialize any properties that
> are required in the rendering block

So somewhere in my early rendering phases I'd need to get a reference to the 
current block that is to be re-rendered and grab values out of that - I guess.

> Draggables can have a "draggablecontext" attribute. Although I've not used
> it I'm sure that you could pass the context required to initialize your
> property.

draggable context gets passed no problem - it's on the drop zone.


Within my component, the currentExtension is null.

I think I'll have to re-work what I want to do, or dive into tapestry's innards 
to get a reference to the current component.  (like row in a grid)
        
        //THIS WORKS!
        @OnEvent(value = JQueryEventConstants.DROP, component = "extensionZone")
        void dropOnExtensionZone(Object[] context){
                String contextString = (String)context[0];
                this.thedata = contextString + " on dropzone for " + 
currentExtension ;
        }

Reply via email to