Thanks Martin - I meant more aligned with the existing Wicket framework - I understand the JS concept, but was wondering if anyone had built the (de)multiplexing code on the client and server to handle a single event handler for a table/repeater component and how that could hook up with existing server side Wicket components.
N On Fri, May 3, 2013 at 3:51 AM, Martin Grigorov <mgrigo...@apache.org>wrote: > Hi, > > There are many articles in the web about "javascript event delegation". > Here is one of them: http://davidwalsh.name/event-delegate > > The idea is that you should use AjaxEventBehavior on the table component > without using AjaxLink or any other Ajax component/behavior for the > components in the cells. > The cells and rows can have data-xyz attributes with their specific data. > When a cell is clicked AjaxCallListener can collect the related data from > the data- attributes and send it to the server. The #onClick() method can > process the posted data or just broadcast it with Wicket event to the > children components so they can process it themselves. > > This pattern is not so straithforward as using AjaxLink but it indeed makes > a difference in the performance, especially in IE family. > > > > On Fri, May 3, 2013 at 12:15 AM, Nick Pratt <nbpr...@gmail.com> wrote: > > > Any demos of this with Wicket form components or simple click listeners ? > > > > I'd much rather a repeater have a single listener for grouped events (or > > maybe at the column level for tables) > > > > N >