I feel like there should be a really easy way to do this, but I just cannot figure it out.
I have an AjaxFallbackDefaultDataTable. As normal, this table has links in it for table paging, a footer with a dropdown allowing the user to change how many items per page, etc. I want to run a piece of extra javascript every time any of these links run. For example, every time the user changes table pages, I want to run: target.appendJavaScript("alert('You clicked a button!')"); I don't have access to each of the links in the table to add this manually to the onClick events, nor would I want to repeat the code for every one of those links even if I did have access. Is there a sweeping way to do that? I thought I could just add an 'onload' behavior to the table or something, but that doesn't seem to work. I know that the parent can see that ajax occurs in it's children since things like IAjaxIndicatorAware work whenever a child's ajax event gets called. I just don't know how to use/access these calls. Thanks for any help you can offer! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calling-Javascript-for-any-event-in-a-parent-tp4676501.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org