Hi all, 
   I have a page in which I declare a zone:
        @InjectComponent
        private Zone tokenDetailsZone;  

an EventLink for updating the zone:
@Component(parameters = "event=updateContent","zone=tokenDetailsZone" })
     private EventLink updateContent;

and the event handler method:
  Object onUpdateContent(Integer packageId) {                
             // perform logic
                return tokenDetailsZone.getBody();
        }

The TML has all the necessary content for the zone to be displayed. 

All this works fine. 

However, when I add a javaScript library to the page like so: 
 @Import(library={"context:js/jquery.min.js","context:js/fancyzoom.min.js"})
public class PageClass
{
... 
}

It stops working. By "stops working" I mean the EventLink in the template
get's displayed, but when I click it the Event Handler method
"onUpdateContent" no longer get's invoked. 

I have tried adding the javaScript library not by @Import but by using
"JavaScriptSupport", still the same problem. 

Anything I'm missing here? Why importing an additional JS library interferes
with the zone's update?

Thanks very much, 
Bogdan. 






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Importing-a-JQuery-library-stops-Zones-from-responding-to-events-from-EventLink-tp4920064p4920064.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to