Thanks for the suggestion, Igor. Unfortunately, it didn't work.
So I tried doing the following in AfterRender.
renderSupport.addScript(" var Pirate =
Class.create(Tapestry.ElementEffect, {" +
" showeditorzone :
function(element) {" +
" alert('hey');" +
"
editWindow.show('editWindow');" +
" resizeWindow(500,
500);" +
" return new
Effect.Highlight(element);" +
" }" +
" });");
I also tried overriding the existing highlight and show methods in
Tapestry.ElementEffect and leave <t:zone>'s update and show parameters blank,
but these methods just were not getting called.
I wonder whether I should concentrate on adding some behavior to the event link
instead.
<t:eventlink t:event="editComponent" t:context="editEventContext"
t:zone="editorZone">Edit</t:eventlink>
Maybe I should add a script to event link's on click event so that in addition
to invoking the "editComponent" event it also shows the Window. Would that
interfere with the Zone from getting updated when the "editComponent" event
returns?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]