The same approach was used for things like dragging cells around... and many other dirty tricks... If you do this in an organized manner you could still have something that is not 100% the wicekt way but still have some nice "componentization".
As Cedric said martin is working to deliver something generic. On Wed, Jul 17, 2013 at 11:25 AM, Ernesto Reinaldo Barreiro < [email protected]> wrote: > Hi, > > For some application with very big tables with lots of links and AJAXy > things I have done the following. > > 1- Place a an AbstarctAjaxBehavior at table level. > 2- Create special link components that all what they do I submit info > about their ID to this unique AbstarctAjaxBehavior. > 3- On server side you can use a visitor, on unique AJAX behavior, to > locate the instance of the "special link" and deliver the event to it. > > This reduced a lot the amount of java script to stream to the client and > made component very responsible. > > > > > On Wed, Jul 17, 2013 at 11:16 AM, DaveS <[email protected]> wrote: > >> Hi guys, >> I am making table of some items. Table component is default wicket >> DataTable. Table page size is 100 items per page and data have several >> pagings. So that is easy. >> >> Now I would like to add 5 ajax links related to row item. That is also no >> problem and easy and everythings works fine. >> >> But when I exploring page rendered HTML source, I see a lot of ajax event >> bindings. (exactly 500 = 100 * 5) >> >> >> Wicket.Ajax.ajax({"u":"./links?2-1.IBehaviorListener.0-c1~link","e":"click","c":"id4"});; >> >> Wicket.Ajax.ajax({"u":"./links?2-1.IBehaviorListener.0-c2~link","e":"click","c":"id5"});; >> .... >> >> I understand how it works, but I would like to ask if you know some >> solution >> how reduce large amounts of events binding, because I am affraid about >> page >> loading performance with this huge count of bindings. >> >> Thanks for your advice. >> >> Dave >> >> >> >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/Table-with-a-lot-of-ajax-links-tp4660303.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Regards - Ernesto Reinaldo Barreiro > -- Regards - Ernesto Reinaldo Barreiro
